LAB RECORD PROGRAM NO -2

 2. Write a C Program to print Multiplication Table of any given number. 

#include<stdio.h>

#include <conio.h>

void main() 

{

 int n,i=1; 

printf("\nEnter your n: "); 

 scanf("%d", &n);

 printf(ā€œ\n MULTIPLICATION TABLE OF %d\nā€,n); 

do

 {

 printf(ā€œ%d x %d = %d\nā€,n,i,n*i); 

i=i+1;

 }while(i<=10); 

getch(); 

Comments

Popular posts from this blog