Water Requirement | Problem - 13 | Beginner level | C language | CodeChef

Link to the problem statement: https://www.codechef.com/submit-v2/WATERREQ

Solution: 

#include <stdio.h>

int main(void) {
int t, n, i;
scanf("%d", &t);
for(i=0;i<t;i++)
{
    scanf("%d", &n);
    n = n*2;
    printf("%d\n",n);
}
return 0;
}

Hope this will help you, if you want anything else leave a comment.

Thank you

Comments

Popular posts from this blog

Roller Coaster | Problem - 8 | Beginner level | C language | CodeChef

The Cheaper Cab | Problem - 18 | Beginner level | C language | CodeChef