live prg hobby
Tuesday, 20 September 2016
live prg
PROGRAM:
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,a[7]={1,2,3,4,5,6,7};
clrscr();
for(i=0;i<7;i++)
{for(j=0;j<7;j++)
if(a[i]==a[j] ||i+j==6)
printf("%d",a[i]);
else
printf(" ");
printf("\n"); }
getch();
}
OUTPUT:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment