WAP to print the table of a number using "Do While Loop"

//WAP to print the table of a number using "Do While Loop"//

#include<stdio.h>
#include<conio.h>
void main();
{
 int i, n, t;
 printf("Enter the number whose table is to be find out\n");
 scanf("%d", &n);
 i=1;
 do
 {
  t=n*i;
  i=i+1;
  printf("%d\n", t);
 }
 while (i<=10);
 getch();
}

  • The Input and Output of this program is shown in the pictures below:-                                                                                                                                                                                                                                   INPUT                                                                                                                                                                     
                                                                                                                                                                                                                                                                                                                                                        OUTPUT                                                                                                                                                                     
                                                                                                                                                                                                                                 
                                                                                                                                                                                                                                                                                                                                                                      

Comments