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.
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();
}
Area of a rhombus = 0.5 times the product of its diagonals
draw a line chart.
Write a C program to Draw a RAINBOW and fill the suitable colors ...
With platform-dependent library-functions. Use your help system.
c program was introduced in the year 1972 by Dennis RitchieNo, it was the C language, not the C program.
how to create a c program for left factoring.
draw a line chart.
Write a C program to Draw a RAINBOW and fill the suitable colors ...
Yes, draw a rhombus.
in BGIDEMO.C, part of TurboC
a rhombus
no
a rhombus
square, rectangle
With a ruler.
No, you cannot.
yes
Squares are special cases of rhombuses, ones in which all the internal angles are the same (90°). So no, you cannot draw a square that is not a rhombus. It's a bit like trying to draw a square that is not a quadrilateral. Squares are special cases of quadrilaterals.