Advertisement
rahat62

Toph-Discovering Shazam's Superpowers

Jan 30th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5.     int t,i,n,count=0;
  6.  
  7.     scanf("%d",&t);
  8.     for(i=1;i<=t;i++)
  9.     {
  10.         scanf("%d",&n);
  11.         if(n%3==0)
  12.         {
  13.             count++;
  14.         }
  15.     }
  16.  
  17.     printf("%d\n",count);
  18.  
  19.     return 0;
  20.  
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement