repl.it
C

No description

fork
loading
Files
  • main.c
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <stdio.h>

int main(void) {
	int counter;
	

	counter = 1;

	while(counter <101){
		if(counter%3 == 0){
			if(counter%7 == 0)
			printf("fizzbuzz\n");
		}
			
		else{
			printf("fizz\n");
			}
		
		else{
			if(counter%7==0){
				printf("buzz\n");
			}
		}
		else{
		printf("%d\n", counter);
		counter++;
	}
		
}