Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void)
- {
- int i,count = 0;
- for(i=1;count<100;i++){
- if(i%3 == 0 && i%7 == 2){ /* i%21 == 9 でも可 */
- count++;
- printf("%d",i);
- if(count%10 == 0){
- printf("\n");
- } else {
- printf(":");
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment