answersLogoWhite

0


Best Answer

C++ has no built-in graphics functions as graphics are platform-specific. You need a graphics library that provides a suitable API for your platform and its hardware in order to output graphics in C++. The code you use will therefore be dependant upon that library.

User Avatar

Wiki User

11y ago

Still curious? Ask our experts.

Chat with our AI personalities

EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra
TaigaTaiga
Every great hero faces trials, and you—yes, YOU—are no exception!
Chat with Taiga
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
More answers
User Avatar

Wiki User

12y ago

main()

{

int i,j,k,n;

clrscr();

printf("enter number");

scanf("%d",&n);

for(i=1;i<=n;i++)

{

for(j=i;j printf(" ");

for(k=1;k<=i;k++)

printf(" *");

printf("\n");

}

for(i=n;i>1;i--)

{

printf(" ");

for(j=1;j printf(" *");

printf("\n");

for(k=(n+1)-i;k>=1;k--)

printf(" ");

}

getch();

}

User Avatar

User Avatar

Wiki User

12y ago

Area of a rhombus = 0.5 times the product of its diagonals

User Avatar

Add your answer:

Earn +20 pts
Q: How do you draw a rhombus in c program?
Write your answer...
Submit
Still have questions?
magnify glass
imp