#include <stdio.h>
#include <stdlib.h>
int main (void)
{
int num=1,cnt=0,sp=0,op=0;
while(num!=0){
scanf("%d",&num);
if(num==0) break;
cnt=cnt+1;
if(num%3==0) sp++;
if(num%5==0) op++;
}//while
printf("%d",cnt-(sp+op));
system("pause");
return 0;
}
2016.03.05 10:05
3의 배수 5의 배수 빼기(승민)
조회 수 237 추천 수 0 댓글 0