Death, the Multiverse and Nothing : HackerEarth Problem Solution

You'll be given an array AA of NN integers as input. For each element of the array A[i]A[i], print A[i]−1A[i]−1.

Input:
There will be N+1N+1 iines of input each consisting of a single integer.
Integer in first line denotes NN
For the following NN lines the integer in ithith line denotes the integer A[i−1]A[i−1]

Output:
For each element of the array A[i]A[i], print A[i]−1A[i]−1 in a new line.

Constraints:
1≤N≤101≤N≤10
1≤A[i]≤10

C Implementation:

#include <stdio.h>

int main()
{
    int n;
    int value;
    scanf("%d",&n);
    while(n--)
    {
     scanf("%d",&value);
     printf("%d\n",value-1);
    }
    return 0;
}