##my issue
Why doesn’t the output show the area as 196 and cost as 196*7$ when i write s^2 instead of s * s?
My code
//Update the blanks in the code below to solve the problem
#include <stdio.h>
int main()
{
int s = 14 ;
int area = s^2 ;
int cost = area * 7 ;
printf("%d \n", area ); //Area and cost have to be output on separate lines
printf("%d", cost ); //'$' has to be printed after cost without any space
printf("$");
return 0;
}
Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone