Advertisement
Avdluna

Untitled

Sep 14th, 2015
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.64 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int n,d,x,i;
  7.  
  8.         while(scanf("%d %d",&d,&n) != EOF){
  9.  
  10.             for(i = 0 ; i<n ; i++){
  11.  
  12.                 scanf("%d",&x);
  13.  
  14.                     if(x == 1){
  15.                         printf("Rolien\n");
  16.                     }
  17.  
  18.                     else if(x == 2){
  19.                         printf("Naej\n");
  20.                     }
  21.  
  22.                     else if(x == 3){
  23.                         printf("Elehcim\n");
  24.                     }
  25.  
  26.                     else{
  27.                         printf("Odranoel\n");
  28.                     }
  29.             }
  30.     }
  31.     return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement