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
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y 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();

}

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

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

This answer is:
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