Codechef problems : New Year Resolution (NYRES)
Problem Statement:
https://www.codechef.com/problems/NYRES
Solution:
If the chef does daily x push-ups then in 31 days (of January) he will do 31*x pushups.
Code Solution:
#include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
cout << 31 * x;
return 0;
}
Comments
Post a Comment