T.V. NAGARAJU TECHNICAL SOLUTIONS
Pages
Home
Online Courses
Tutorials
Operating Systems
C -Excercises
Python Excercises
JAVA Exercises
Placement Papers
Lab Programs
Python Programs
p36
int main() {
int n=5,i,j,k;
for(i=1;i<=n;i++)
{
k=i-1;
for(j=i;j<n+i;j++)
{
if(j<=n)
printf("%d",j);
else
printf("%d",k--);
}
printf("\n");
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment