Answer 1
#include ❮stdio.h❯
int main ()
{
int a , b, c;
a = 87;
b = 15;
c = a - b;
printf("The difference between %d and %d is %d", a, b, c);
return 0;
}
Answer 2
#include ❮stdio.h❯
int main ()
{
int sum;
sum = 25 + 37 - 19;
printf("The result is %i\n", sum);
return 0;
}
Answer 3
The result is 95
Answer 4
d = d
Answer 5
#include ❮stdio.h❯
int main()
{
float unit_price, cost_price;
unit_price = 10.50;
cost_price = 5*unit_price;
printf("\nCostprice of 5 items is %.2f", cost_price);
return 0;
}
0 Comments