Wednesday, May 20, 2020

Multiplication table in C

  • Program :
#include <stdio.h>
int main()
{
    int number, i = 1;
    printf("\n----------------MULTIPLICATION TABLE----------------"); 
    printf("\n Enter the Number:");
    scanf("%d", &number);
    printf("\nMultiplication table of %d:\n ", number);
    printf("--------------------------\n");
    while (i <= 10)
    {
        printf(" \n%d x %d = %d \n ", number, i, number * i);
        i++;
    }
    return 0;
}




  • Output :


No comments:

Post a Comment

Function Overloading in C++

https://monitechvenkat1620.blogspot.com Program : #include <iostream> using namespace std; int c(int x, int y) {   return...