Advertisement
rdsedmundo

[OBI] selos.c

May 31st, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.     int N, i, j;
  5.  
  6.     scanf("%d", &N);
  7.  
  8.     for(i=2;i<N;i++) {
  9.         for(j=2;j<N;j++) {
  10.             if(i*j == N) {
  11.                 printf("S");
  12.                 return 0;
  13.             }
  14.         }
  15.     }
  16.  
  17.     printf("N");
  18.  
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement