Skip to content

My third ever program, I wrote this by myself and I think it's pretty good

Notifications You must be signed in to change notification settings

kc01-8/fizzbuzz-in-c-short

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

fizzbuzz-in-c-short

My third ever program, I wrote this by myself and I think it's pretty good

#include <stdio.h>

int main(){ for (int i = 1; i < 101; i++){ if(i % 3 == 0 && i % 5 == 0){ printf("FizzBuzz\n"); } else if(i % 3 == 0){ printf("Fizz\n"); } else if(i % 5 == 0){ printf("Buzz\n"); } else{ printf("%d\n",i); } } }

About

My third ever program, I wrote this by myself and I think it's pretty good

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages