answersLogoWhite

0

#include<stdio.h>

void main() {

float a, b, result = 0.0;

int choice;

print f("Choose 1 for addition choose 2 for subtraction & 3 for multiplication & 4 for division \n");

scan f("%d" &choice);

print f("Enter Two Numbers ");

scan f("%f, %f" &a, &b);

switch(choice) {

case 1:

print f("The Result Is :" "%f" a + b);

break;

case 2:

print f("The Result Is :" "%f" a - b);

break;

case 3:

print f("The Result Is :" "%f" a * b);

break;

case 4:

print f("The Result Is :" "%f" a / b);

break;

default:

print f("Wrong Choice");

}

}

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Explain with suitable example how switch statement is differ from if statement?

www.assignmentsclub.com


Write a c programme to draw a rainbow?

Write a C program to Draw a RAINBOW and fill the suitable colors ...


What is bagging technique How is it useful in a plant breeding programme?

Little flower hour with a suitable site mira mesa. What is the technique


What is bagging technique How is it useful in a plant breeding programme explain?

Little flower hour with a suitable site mira mesa. What is the technique


Is the statement 'lots of love' grammatically correct?

Yes, but it is very informal - that is not suitable for writing.


What is a biliment?

A biliment is a person's, generally a woman's, clothing suitable for their job, statement or occasion.


Accounting equation is true under all circumstances justify the statement with help of suitable example?

"Accounting Equation is true under all circumstances." Justify this statement with the help of examples.


Is the color blue is pretty a good thesis?

The statement &quot;the color blue is pretty&quot; is subjective and may not be suitable as a thesis statement for an academic paper. A thesis statement should be clear, specific, and arguable, providing a focus for your research or argument. Consider revising the statement to make it more analytical or debatable.


Can anybody of any age watch Pokemon?

Yes they can..... silly question really its only a tv show. its not gunna say "the following programme has been rated suitable for people aged under 11" is it?


Who discovered the law of cosines?

A caveman from 10,000 BCal-Kashi was the 1st to provide an explicit statement of the law of cosines in a form suitable for triangulation


Is Dimethylformamide DMF suitable for UV spectroscopy detection?

Yes, Dimethylformamide (DMF) is suitable for UV spectroscopy detection as it has a wide UV absorption range that allows for analysis in this spectral region. However, it is important to consider that DMF itself absorbs UV light, so baseline correction and appropriate blank subtraction are necessary for accurate measurements.


Is there a Zumba exercise programme suitable for the over 50s?

Zumba is a dance form of exercise that has attracted several people including the elderly. Diane Felkenes is a 51 year old Zumba instructor who teaches the Zumba Gold version.