This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
public class Main { | |
public static void main(String[] args) { | |
int b = 4; | |
int End_number = 20; | |
while (b <= End_number) { | |
b++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
public class Main { | |
public static void main(String[] args) { | |
int count =0; | |
int sum =0; | |
for (int number = 1; number < 1000;number++) { | |
if(number%3==0&&number%5==0){ | |
// System.out.println(number+number); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
public class Main { | |
public static void main(String[] args) { | |
for(int i=0;i<5;i++){ | |
double solution = calculate_interst(10000d,i); | |
System.out.println("On " + i + "% it will be"); | |
System.out.println(solution + " $"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
public class Main { | |
public static void main(String[] args) { | |
DayOfTheWeek(1); | |
DayOfTheWeek(2); | |
DayOfTheWeek(3); | |
DayOfTheWeek(4); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
public class Main { | |
public static void main(String[] args) { | |
String keyword = "January"; | |
switch (keyword){ | |
case "January": case "Febuary": case "March": case "April": case "May": case " June": case "July": | |
case " August": case "September": case "October": case "November": case "December": |