Advertisement
kazol196295

kazol_code

Jul 9th, 2020 (edited)
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <string.h>
  4.  
  5. int main()
  6. {
  7.     char s[100];
  8.     int ans=0;
  9.     scanf("%s",s);
  10.     if(strlen(s)!=0){
  11.         if(s[strlen(s)-1]=='0' || s[strlen(s)-1]=='5')
  12.             ans=1;
  13.     }
  14.     if(ans)printf("YES\n");
  15.     else printf("NO\n");
  16.  
  17.  
  18.     return 0;  
  19. }
  20.  
  21.  
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement