academics, personality development
Wednesday, November 24, 2010
prg.no:1 square using given input
//to form square using given input
#include
#include
Void main()
{
int i,j,n;
clrscr();
printf(“enter the number from 2 to 9”);
scanf(“%d”,&n);
for(i=0;i
{
for(j=0;j
{
if(i==0i==n-1j=0j==n-1)
{
printf(“%d”,n);
}
else
{
Printf(“ ”);
}
}
printf(“\n”);
}
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment