double Monday = 100; double Tuesday = 121; double Wednesday = 117; double dailyAverage = 0; double monthlyAverage = 0; double monthlyProfit = 0; dailyAverage = (Monday+Tuesday+Wednesday)/3; monthlyAverage = dailyAverage*30; monthlyProfit = monthlyAverage*0.18; System.out.println("Daily Average: " +dailyAverage); System.out.println("Monthly Average: " +monthlyAverage); System.out.println("Monthly Profit: $" +monthlyProfit);
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter