Algorithm
Problem link - https://www.codechef.com/START66D/problems/SQUATS
Problem
Somu went to the gym today. He decided to do sets of squats. Each set consists of squats. Determine the total number of squats that he did today.
Input Format
- The first line contains a single integer — the number of test cases. Then the test cases follow.
- The first and only line of each test case contains an integer — the total number of sets of squats that Somu did.
Output Format
For each test case, output the total number of squats done by Somu.
Constraints
Sample 1:
3 1 4 99
15 60 1485
Explanation:
Test Case 1: Since, he does only set of squats, the total number of squats done by him is .
Test Case 2: Since, he does sets of squats, the total number of squats is .
Code Examples
#1 Code Example with C Programming
Code -
C Programming
#include<stdio.h>
int main()
{
int x, t;
scanf("%d", &t);
while(t--)
{
scanf("%d", &x);
printf("%d\n", x*15);
}
}
Copy The Code &
Try With Live Editor
Input
1
4
99
Output
60
1485
Demonstration
Codechef solution - SQUATS Squats in C, C++, Java