Skip to content

Instantly share code, notes, and snippets.

@Jason-time
Created June 9, 2020 06:51
Show Gist options
  • Save Jason-time/10571d4ef42f49cda5c483354628ac06 to your computer and use it in GitHub Desktop.
Save Jason-time/10571d4ef42f49cda5c483354628ac06 to your computer and use it in GitHub Desktop.
#include<stdio.h>
int main() {
int n, i, s=0;
scanf("%d",&n);
//코드 작성
for(i=1 ; i<=n ; i++){
if( (0==i%2) && (0== i%3) && (0!=i%5)){
s+=s+i;}
}
printf("%d",s);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment