answersLogoWhite

0

void main()

{

int i;

float n1,n2;

abc:

printf("Enter two nos ");

scanf("%f%f",&n1,&n2);

printf("\n %f + %f = %f " ,n1,n2,n1+n2);

printf("\n %f - %f = %f " ,n1,n2,n1-n2);

printf("\n %f x %f = %f " ,n1,n2,n1*n2);

printf("\n %f / %f = %f " ,n1,n2,n1/n2);

printf("\npress 5 to make another calculation");

scanf("%d",&i);

if (i==5)

goto abc;

}

User Avatar

Wiki User

16y ago

Still curious? Ask our experts.

Chat with our AI personalities

RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine

Add your answer:

Earn +20 pts
Q: How can you create calculator in computer language cpp?
Write your answer...
Submit
Still have questions?
magnify glass
imp