Thursday

Write a C program to input a number and display its multiplication table.

#include<stdio.h>
#include<conio.h>
void main()
  {
    int n,i;
    clrscr();
    printf("\n Enter number:");
    scanf("%d",&n);
    for(i=1;i<=10;i++)
    printf("\n%d X %d = %d",n,i,n*i);

  getch();
  }

No comments:

Post a Comment

Rahul-Notes