Test case3 and case4 are failed in paint cost problem | Sololearn: Learn to code for FREE!

+2

Test case3 and case4 are failed in paint cost problem

https://code.sololearn.com/cC7mZjvv8kXF/?ref=app

8/30/2020 6:13:38 AM

Pawan Kumar

1 Answer

New Answer

+2

Pawan Kumar #include <stdio.h> int main() { int n,cost;//here n is the number of colors int m; scanf("%d",&n); n=n*5+40; m=round(n*0.1); cost=(m+n); printf("%d",cost); return 0; }