write a c program to get two number ,subtract the first number from second number and display the result
Answers
Answered by
1
Answer:
#include <stdio.h>
int main() {
int a,b,result;
printf("enter first number :");
scanf("%d",&a);
printf("enter second number :");
scanf("%d",&b);
result =b-a;
printf("the difference is : %d",result);
return 0;
}
Explanation:
output will be
/* enter first number :5
enter second number :15
the difference is : 10 */
Similar questions