write a program in C language that input two numbers and one arithmetic operators .It applies arithmetic operation on no on the basic of given operator.
Answers
Answered by
2
Answer:
#include <stdio.h>
int main()
{
int a, b, result ;
printf("Enter the value of a\n");
scanf("%d", & a);
printf("Enter the value of b\n");
scanf("%d", & b);
result = 2*((a%5)*(4+(b-3)));
printf("The result is %d\n", result );
return 0;
}
Output :
Enter the value of a
6
Enter the value of b
7
The result is 16
Similar questions