Sort by

recency

|

2114 Discussions

|

  • + 0 comments

    Java 8 import java.io.; import java.util.; import java.text.; import java.math.; import java.util.regex.*; import java.util.Scanner;

    public class Solution { public static void main(String[] args) { // Create a Scanner object to read input from stdin Scanner scan = new Scanner(System.in);

        // Read a full line of input and store it in the variable inputString
        String inputString = scan.nextLine();
    
        // Close the Scanner object
        scan.close();
    
        // Print "Hello, World." on the first line
        System.out.println("Hello, World.");
    
        // Print the value of inputString on the second line
        System.out.println(inputString);
    }
    

    }

  • + 1 comment

    please upload the correct script i dont think i am getting it

  • + 0 comments

    int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */
    char s[10000]; cin.getline(s, 10000); cout << "Hello, World." << endl << s << endl; return 0; }

  • + 0 comments

    word="hello world" print(word)

  • + 1 comment

    Can somebody explain why my code is correct when I run it, but when I submit it it says it's 1/2 wrong?