// eman mokoginta.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "conio.h"
#include "stdio.h"
int _tmain(int argc, _TCHAR* argv[])
{
int x,y;
for(x=5;x>=1;x--)
{
for(y=x;y>=1;y--)
{
printf("%d",y);
}
printf("\n");
}
getch();
return 0;
}
flowchart
Tidak ada komentar:
Posting Komentar