Answer to Question #181493 in C++ for Rishav Raj

Question #181493

Create an array of 5 objects of 

calculator. Use parameterized constructor to initialize the values. Display output of all four 

arithmetic operations.


1
Expert's answer
2021-04-14T15:57:58-0400
#include <iostream>
using namespace std;
int main()
{
    char arr[5]={'+','-','*','/','%'};
    for (int i=0; i<5; ++i)
        cout << arr[i]  << " ";
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS