Monday, November 24, 2025

Write the C Program. Print the following format

 Write the Program Print the following format
        12345        
        12345       
        12345       
        12345       
        12345 


#include<stdio.h>
main()
{
    int i,j;
    for(i=1;i<=5;++i)
    {
          for(j=1;j<=5;++j)
       printf("%2d",j);
          printf("\n");
    }
}

                       Output



No comments:

Post a Comment