Computer Science, asked by chriskumar603, 1 year ago

write a program to illustrate the use of all arithematic operations​

Answers

Answered by overthetopofyourhead
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 Soñador
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