Help me in solving BMCP04A problem

My issue

My code

// Complete the code

#include <stdio.h>

int main() {
    int t;
    int X;
    int i = 1;
    scanf("%d", &t );
    while (i <= t){
        scanf("%d", &X);

    return 0;

Learning course: C for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone

two mistakes first u have to increment i in loop and u have to put \n in printf u leave line after each output