do you mean that i should after the output was given ask for an other input? so like a while control structure?
edit: now i get a runtime error :-p
Search found 3 matches
- Mon Apr 11, 2011 6:31 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 320000
- Sun Apr 10, 2011 8:54 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 320000
Re: 100 on Java
thanks...but i get "wrong answer" again -.- i sucks really ....
- Sun Apr 10, 2011 10:53 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 320000
100 on Java
hello, i tried to solve the first problem but i always get "wrong answer" but i dont know why. can anybody give me a short advice
import java.io.*;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in ...
import java.io.*;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in ...