QUCDTIUNTURI
TALLED
Help Ashna with her homework
Ashna is a third grade school going school. Miss Benzy is a very strict teacher
and she teaches math to all the students. On the first day of academic year,
Miss Benzy gave her a homework to find sum, difference, product, quotient
and remainder of the two numbers given by her. Can you help Ashna by
writing a program for the same.
The input should consist of two integers.
Case
Case 3
Answers
Answered by
1
I don't know l am not understand your question not solve please so sorry
Answered by
0
Answer:
#include <iostream>
using namespace std;
int main()
{
int a,b,c;
std::cin>>a>>b>>c;
c = a + b;
std::cout << "a+b=" << (a+b) << endl ;
c = a - b;
std::cout << "a-b=" << (a-b) << endl ;
c = a * b;
std::cout << "a*b=" << (a*b) << endl ;
c = a / b;
std::cout << "a/b=" << (a/b) << endl ;
c = a % b;
std::cout << "a%b=" << (a%b) << endl ;
return 0;
}
Explanation:
DONE WITH endl
Similar questions