Sunday, March 20, 2016

URI 1114 - Fixed Password

#include<stdio.h>
main()
{
    long int x;
    while(scanf("%ld",&x)==1){
        if(x==2002){
            printf("Acesso Permitido\n");
            break;
        }
        else
            printf("Senha Invalida\n");
    }
}

No comments:

Post a Comment