Can you help in finding the error, | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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; }

9th May 2021, 5:59 PM
Msaligs
Msaligs - avatar
1 Answer
+ 3
Round up your tax with ceil()
9th May 2021, 7:33 PM
ChaoticDawg
ChaoticDawg - avatar