+ 1
Can you help in finding the error,
#include <stdio.h> #include<math.h> int main() { int color; int cost = 40; int tcost=0; scanf("%u",&color ); cost +=color*5; tcost = cost + (cost *10)/100; printf("%u",tcost); return 0; }
1 ответ
+ 3
Round up your tax with ceil()