PROGRAM ON ENTERING FIRST FIVE MULTIPLE OF INTEGER
#include<iostream.h>
#include<conio.h>
void main()
{
int num,mul1,mul2,mul3,mul4,mul5;
clrscr();
cout<<"Enter the no.:";
cin>>num;
mul1=num*1;
mul2=num*2;
mul3=num*3;
mul4=num*4;
mul5=num*5;
cout<<"First five multiple of given no are:"<<mul1<<","<<mul2<<","<<mul3<<","<<mul4<<","<<mul5;
getch();
}
#include<conio.h>
void main()
{
int num,mul1,mul2,mul3,mul4,mul5;
clrscr();
cout<<"Enter the no.:";
cin>>num;
mul1=num*1;
mul2=num*2;
mul3=num*3;
mul4=num*4;
mul5=num*5;
cout<<"First five multiple of given no are:"<<mul1<<","<<mul2<<","<<mul3<<","<<mul4<<","<<mul5;
getch();
}
Comments
Post a Comment