Thursday 27 October 2016

c program to print the following pattern

#include<stdio.h>
#include<conio.h>
int main()
{ int a,c,b;
clrscr();
for(a=8;a>=2;a=a-2)
{
for(c=1;c<=a;c++)
{

printf("%d",c);
}
printf("\n");
}
getch();
}

No comments:

Post a Comment