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