Sort by

recency

|

2114 Discussions

|

  • + 0 comments

    Java8 :

    import java.io.; import java.util.; import java.text.; import java.math.; import java.util.regex.*; 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 from stdin and save it to our variable, inputString.
        String inputString = scan.nextLine(); 
    
        // Close the scanner object, because we've finished reading 
        // all of the input from stdin needed for this challenge.
    
        // Print a string literal saying "Hello, World." to stdout.
        System.out.println("Hello, World.");
                System.out.println("Welcome to 30 Days of Code!");
    
                  scan.close(); 
    
        // TODO: Write a line of code here that prints the contents of inputString to stdout.
    }
    

    }

  • + 0 comments

    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?