Multiplication program in CPP Language
Multiplication Program In programming?
#include<conio.h>
using namespace std;
int main ()
{
int a,b,i,temp=0;
cout<<"Enter 1st number .... ";
cin>>a;
cout<<"Enter 2nd number .... ";
cin>>b;
for(i=1;i<=b;i++)
{
temp=temp+a;
}
cout<<endl<<"Result are:: "<<temp;
getch();
}
Comments
Post a Comment