Tuesday, April 14

Print table of given number.

//Program to print table of given number
    #include<stdio.h>
    #include<conio.h>
    int main()
    {
     int n,k=1,m;
     clrscr();
     printf("Enter the number\n");
     scanf("%d",&n);
     while(k<11)
     {
       m=n*k;
       printf("%d*%d=%d\n",n,k,m);
       k++;
     }
   
      getch();
      return 0;
    }


To Run this Program Copy it in text editor and save as .c
Then double click on it and then it will get opened in your compiler.
Click on run.

No comments:

Post a Comment