My issue
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
int s = 14;
int area = s*s;
int cost = area * 7;
cout << cost << endl; //area and cost have to be output on separate lines
cout << cost; //output the $ character after cost without any space
cout << "$";
return 0;
}
Learning course: Learn C++
Problem Link: CodeChef: Practical coding for everyone