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

+18
View File
@@ -0,0 +1,18 @@
public class DebugSix1
// Start with a penny
// Double it every day
// How much do you have in a month?
{
public static void main(String[] args)
{
double money = 0.01;
int day = 1;
while(day <= 31)
{
money = 2 * money;
System.out.println("After day " + day +
" you have " + money);
day++;
}
}
}