Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class Oppg3d {
- public static void main(String[] args) {
- Scanner console = new Scanner(System.in);
- int valg = 0;
- while(valg!=4){
- System.out.println("\n1 = Oppg_3a, 2 = Oppg_3b, 3 = Oppg_3c, 4 = avslutt: ");
- valg = console.nextInt();
- if(valg==1){
- Oppg_3a.getSum(console);
- }
- else if(valg==2) {
- Oppg_3b.printNumbers(console);
- }
- else if(valg==3){
- Oppg_3c.printNumbersIncreasing(console);
- }
- else if(valg>4) {
- System.out.println("Ugyldig valg");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment