write a program to illustrate the use of all arithematic operations
Answers
Answered by
1
All arithmetic operator can only be used with an any variable statement. The arithmetic operators are:
+
-
/
*
%(modulus operator)
//
Ex
A=3
B=2
A+B .... 5
A-B ........1
A*B ...... 6
A/B........ 3/2
A%B .......1
A//B ....... 1
Hope it helps.....
For queries, revert back in commemts or at [email protected] . I can solve all your Programming queries.
Answered by
1
Answer:
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a, b;
cout<<"\nEnter any number";
cin>>a;
cout<<"\nEnter any number";
cin>>b;
cout<<a+b<<endl;
cout<<a*b<<endl;
cout<<a/b<<endl;
cout<<a%b<<endl;
cout<<a-b;
getch();
}
Similar questions
English,
6 months ago
Accountancy,
6 months ago
Chemistry,
6 months ago
Physics,
1 year ago
Math,
1 year ago