Thursday, 18 April 2013

program

About C programing:: This program is a patern shown as below
1
2 3
4 5 6
7 8 9 10

ans: #include
#include
main()
{
int i,j,k=1;
for(i=1;i<=4;i++)
{
for(j=1;j printf("%d",k++);
printf("\n");
}
getch();
}

No comments:

Post a Comment