Multiplication program in CPP Language

Multiplication Program In programming?


#include<iostream>
#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();
}

Output Result


Comments

Popular posts from this blog

Even/Odd Number Checking Code in CPP

Calculating Name and Marks in Cpp

Triangle of Characters(CPP)