FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
learn-cpp/4-loops/fizzbuzz/fizzbuzz.cpp at master · Codecademy/learn-cpp · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
Codecademy
/
learn-cpp
Public
Notifications
You must be signed in to change notification settings
Fork
372
Star
872
Code
Issues
6
Pull requests
48
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
learn-cpp
/
4-loops
/
fizzbuzz
/
fizzbuzz.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
29 lines (15 loc) · 321 Bytes
Breadcrumbs
learn-cpp
/
4-loops
/
fizzbuzz
/
fizzbuzz.cpp
Copy path
File metadata and controls
29 lines (15 loc) · 321 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
<
iostream
>
int
main
() {
for
(
int
i =
1
; i <=
100
; i++) {
if
(i %
15
==
0
) {
std::cout <<
"
FizzBuzz
\n
"
;
}
else
if
(i %
5
==
0
) {
std::cout <<
"
Buzz
\n
"
;
}
else
if
(i %
3
==
0
) {
std::cout <<
"
Fizz
\n
"
;
}
else
{
std::cout << i <<
"
\n
"
;
}
}
return
0
;
}
Back
|
FazBrowse Home
|
New Git URL