Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
OraculoTrainingen committed Feb 20, 2020
0 parents commit c446073
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.idea/
/out/production/FizzBuzz/
11 changes: 11 additions & 0 deletions FizzBuzz.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
13 changes: 13 additions & 0 deletions src/FizzBuzz.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
public class FizzBuzz {


public static void main(String[] args) {
for (int i =1;i<=100;i++) {
if (i%3==0&&i%5==0) System.out.print(",fizzbuzz");
else if (i%3==0) System.out.print(",fizz");
else if (i%5==0) System.out.print(",buzz");
else System.out.print(","+i);
}
}

}

0 comments on commit c446073

Please sign in to comment.