My issue
My output for this is correct.But test cases are failed. Help me find out reason for the problem
My code
#include <stdio.h>
int main() {
int s = 14;
int area;
int cost;
int paint_cost_per_cm2 = 7;
area = s * s;
cost = area * paint_cost_per_cm2;
printf("%d\n", area);
printf("$%d\n", cost);
return 0;
}
Learning course: Learn C Programming
Problem Link: https://www.codechef.com/learn/course/rcpit-programming-c/RCPITLPC07/problems/RCPITCP38