Program for addition of Two defined variables a and b.
#include<iostream.h>
#include<conio.h>
int main()
{
int a=5,b=6,c=0;
c=a+b;
cout<<"a+b= "<<c;
getch();
return 0;
}
Program for Multiplication of Two defined variables a and b.
#include<iostream.h>
#include<conio.h>
int main()
{
int a=5,b=6,c=0;
c=a*b;
cout<<"a="<<a <<endl<<"b="<<b<<endl<<"a+b= "<<c;
getch();
return 0;
}
OUTPUT
Program for Multiplication of Two defined variables a and b.
#include<iostream.h
#include<conio.h
int main()
{
int a=5,b=6,c=0;
c=a*b;
cout<<"a="<<a
getch();
return 0;
}
OUTPUT
No comments :
Post a Comment