Saturday, July 15, 2017

URI problem 1984 solution in C | (The Pronalância Puzzle)

#include<stdio.h>

int main()
{
    long long int n;
    int i,j,k;
    while(scanf("%lld",&n)!=EOF){
        while(n){
            i = n % 10;
            n = n / 10;
            printf("%d",i);
        }
        printf("\n");
    }
    return 0;
}

No comments:

Post a Comment