This file contains hidden or 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
//Givenanumberfrom1-12,returnthenameoftheappropriatemonth. | |
import java.util.Scanner; | |
public class months { | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); | |
int onetotwelve = input.nextInt(); |
This file contains hidden or 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
//ARRAY: Given an array of ints of ODD length, | |
//look at the first, last, | |
//and middle values in the array and return the largest. The array length will be a least 1. | |
import java.util.Scanner; | |
public class oddArray{ | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); |
This file contains hidden or 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
//for any given pair of intergers, print a statement that states whether the second is a multiple of the fist | |
import java.util.Scanner; | |
public class findMultiples { | |
public static void main(String[] args){ | |
Scanner input = new Scanner(System.in); | |
System.out.println("Please introduce two numbers, separated by the enter key"); | |
int a = input.nextInt(); | |
int b = input.nextInt(); |
This file contains hidden or 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
import java.util.Scanner; | |
import java.io.*; | |
public class arrayReverser { | |
public static void main(String [] args) { | |
Scanner input = new Scanner(System.in); | |
int [] arrayA | |
= new int [5]; |
This file contains hidden or 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
import java.util.Scanner; | |
import java.io.*; | |
public class arrayMerger { | |
public static void main(String [] args) { | |
Scanner input = new Scanner(System.in); | |
int [] array1 = new int [5]; | |
int [] array2 = new int [5]; |
This file contains hidden or 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
//1,1,2,3,5,8,13 | |
//Fn = Fn-1 + Fn-2 | |
import java.util.Scanner; | |
public class Fibonnaci { | |
public static void main (String[] args) { | |
int x = 1; | |
int z = 1; |
This file contains hidden or 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
//1,1,2,3,5,8,13 | |
//Fn = Fn-1 + Fn-2 | |
import java.util.Scanner; | |
public class Fibonnaci { | |
public static void main (String[] args) { | |
int x = 1; | |
int z = 0 |
This file contains hidden or 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
import java.util.Scanner; | |
public class sum2{ | |
public static void main (String[] args) { | |
Scanner input = new Scanner(System.in); | |
System.out.println("Introduce an interger"); | |
int limit = input.nextInt(); | |
int nueva = 0; | |
int nueva2 = 0; |
This file contains hidden or 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
import static java.lang.Integer.*; | |
import static java.lang.Math.*; | |
import java.util.*; | |
import java.io.*; | |
public class zilla{ | |
public static void main(String[] args) throws Throwable{ | |
BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); | |
for(int c = 0, C = parseInt(in.readLine().trim()); c++ < C;){ | |
in.readLine();in.readLine(); | |
int limitzilla = 0, limitmecha = 0; |
This file contains hidden or 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
import java.util.Scanner; | |
import java.io.*; | |
import java.text.DecimalFormat; | |
public class financialManagement{ | |
public static void main(String [] args) { | |
Scanner input = new Scanner(System.in); | |
double[] money; |