public class Solution { public static void main(String[] args) throws Exception {

BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

    String name = reader.readLine();
    String sAge = reader.readLine();

System.out.print(name+" will conquer the world in "+sAge+" years. Bwahaha!.");

}

}

output: Andrew will conquer the world in 9 years. Bwahaha!.

What is the problem?

asked 24 Aug '17, 08:30

endrju69's gravatar image

endrju69
111
accept rate: 0%

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×51
×30
×11

Asked: 24 Aug '17, 08:30

Seen: 506 times

Last updated: 24 Aug '17, 08:30