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 15 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

  • 1≤�≤1000
  • 1≤�≤105

Sample 1:

Input
 
Output
 
3
1
4
99
15
60
1485

Explanation:

Test Case 1: Since, he does only 1 set of squats, the total number of squats done by him is 15.

Test Case 2: Since, he does 4 sets of squats, the total number of squats is 15+15+15+15=60.

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

x
–
+
cmd
3
1
4
99

Output

x
–
+
cmd
15
60
1485
Advertisements

Demonstration


Codechef solution - SQUATS Squats in C, C++, Java

Previous
CodeChef solution AGELIMIT - Age Limit Codechef solution in C, C++, Java
Next
CodeChef solution TAXGIVIN - Saving Taxes CodeCherf solution in C, C++