1 1 1 1 1
2 2 2 2
3 3 3
4 4
5
Berikut syntax Codingnya....
#include <conio.h>
#include <iostream.h>
main()
{
int a,b,c;
clrscr();
for (a=1; a<=5; a++)
{
cout<<"\n";
for (b=5; b<=5; b++)
cout<<a<<" ";
}
getch();
}
Terima kasih semoga bermanfaat :)
2 2 2 2
3 3 3
4 4
5
Berikut syntax Codingnya....
#include <conio.h>
#include <iostream.h>
main()
{
int a,b,c;
clrscr();
for (a=1; a<=5; a++)
{
cout<<"\n";
for (b=5; b<=5; b++)
cout<<a<<" ";
}
getch();
}
Terima kasih semoga bermanfaat :)
0 komentar
Posting Komentar