Wednesday, 3 July 2019

Program in C for multiplication table using while loop

Input :-


Output :-

Code :-


#include <stdio.h>
int main()
{
    int n,i=1;
    printf("Enter a number :");
    scanf("%d",&n);
    while (i<=10)
    {
        printf("%d * %d = %d \n", n, i, n*i);
i++;
    }
}


0 Comments:

Post a Comment

Popular Posts

Categories

Android (21) AngularJS (1) Books (3) C (75) C++ (81) Data Strucures (4) Engineering (13) FPL (17) HTML&CSS (38) IS (25) Java (85) PHP (20) Python (85) R (69) Selenium Webdriver (2) Software (13) SQL (27)