Get Off-Campus Placement Jobs Info !!!
Programs asked in Mettl Coding Round
Click To Practce List of Programs asked in Nagarro !!!

Program Discussion :: Basics

Home > Programs > Basics

3 / 248

Write a program to create a calculator using switch cases.

Answer:

# include 
using namespace std;
int main()
{
    char op;
    float num1, num2;
    cout > op;
    cout > num1 >> num2;
    switch(op)
    {
        case '+':
            cout 

Asked In :: Wipro

Post Your Answer Here:

Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here: