adsense

Hii, welcome to my site. My name is Om prakash kartik. This blog helps you to learn programming languages concepts.

program in c to print table 1 to nth number

Write a program to print table 1 to nth number in C  

#include<stdio.h>
#include<conio.h>
  void main()
    {
      int i,j,n;
      printf("Enter a number:-");
      scanf("%d",&n);
      for(i=1;i<=10;i++)
        {
         for(j=1;j<=n;j++)
            {
             printf("%4d",i*j);
             }
           printf("\n");
          }  
   getch(); 
    }
output:-





        


Post a Comment

0 Comments