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
public class euler1 | |
{ | |
public static void main(String[]args) | |
{ | |
int sum=0; | |
for (int i=1; i<1000; i++) | |
{ | |
if (i%3==0 || i%5==0) | |
sum+=i; | |
} |
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
//joanna wilbur | |
import java.util.*; | |
public class proj6q8 | |
{ | |
public static void main(String[]args) | |
{ | |
Scanner input = new Scanner(System.in); | |
int ArraySize; | |
System.out.println("How many integers are in the sequence?"); |
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
//joanna wilbur | |
import java.util.*; | |
public class proj6q8 | |
{ | |
public static void main(String[]args) | |
{ | |
Scanner input = new Scanner(System.in); | |
int [] UsersArray = new int[100]; | |
int ArraySize; | |