membuat bintang segitiga dengan C++

Kamis, 29 November 2012 , Posted by Kabul Wahyudi at 04.14

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int a,b,c;
for(a=1;a<=10;a++)
{for(b=5;b>=a;b--)
{printf("");}
for(c=1;c<=a;c++)
{printf("*");}
  printf("\n");}
getch();
}


hasilnyaakan seperti ini...


Currently have 0 komentar:

Leave a Reply

Posting Komentar