Archives from S:\ Drive

Good to keep around methinks
This commit is contained in:
Amrit Panesar committed 2015-04-01 21:23:15 -07:00
1 parent eadaf70b9e
commit 6dd63cc439
606 files changed
+50212

No files matched your search

+23
View File
@@ -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");
}
}