can anyone send me c program for calculator using do while loop or switch case, please urgent...
Answers
Answered by
2
Answer:
#include <stdio.h>
#include<conio.h>
clrscr()
void main()
{
print("enter the first number :");
scanf(".\.d",a);
printf("enter the second number :");
scanf(./.d,b);
switch (ch)
{
cas1:
c=a+b;
break;
case2:
c=a-b;
break;
case3:
c=a*b;
break;
default:
printf("invaild input");
}
getch();
}
Similar questions