Skip to content

Commit

Permalink
Moved files; changed files/fizzbuzz.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
nick75g committed Nov 26, 2024
1 parent b2c5125 commit 7b66dba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 23 deletions.
6 changes: 0 additions & 6 deletions appendix/fizzbuzz.cpp

This file was deleted.

24 changes: 7 additions & 17 deletions files/fizzbuzz.cpp
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
#include <iostream>

int main() {
int i=1;
while (i<100){
if (i%3==0){
if (i%5==0){
std::cout<<"FizzBuzz"<<std::endl;
}else{
std::cout<<"Fizz"<<std::endl;
}}else if(i%5==0){
if(i%3==0){
std::cout<<"FizzBuzz"<<std::endl;
}else{
std::cout<<"Buzz"<<std::endl;
}}else{
std::cout<<i<<std::endl;
}
i=i+1;
int main() {int i=1;
while (i<=100){if (i%3==0){if (i%5==0){
std::cout<<"FizzBuzz"<<std::endl;}else{
std::cout<<"Fizz"<<std::endl;}}else if(i%5==0){if(i%3==0){
std::cout<<"FizzBuzz"<<std::endl;}else{
std::cout<<"Buzz"<<std::endl;}}else{
std::cout<<i<<std::endl;}i=i+1;
}return 0;}
File renamed without changes.

0 comments on commit 7b66dba

Please sign in to comment.