directory structure change, organize by class number as opposed to mod number
Signed-off-by: Amrit Panesar <apanesar@4195tech.com>
This commit is contained in:
1 parent
2a3d6fc042
commit
8683384387
480 files changed
+7
No files matched your search
@@ -0,0 +1,23 @@
|
||||
public class DebugFive2
|
||||
// Prints odd numbers
|
||||
// Prints new line after every 10
|
||||
{
|
||||
public static void main(String[] args) throws InterruptedException
|
||||
{
|
||||
int num, count = 0;
|
||||
for(num = 1; num <= 100; num += 2)
|
||||
{
|
||||
System.out.print(" " + num);
|
||||
++count;
|
||||
if(count == 10)
|
||||
{
|
||||
count = 0;
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
|
||||
System.out.println("End of odd numbers");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user