Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://www.hackerrank.com/challenges/30-data-types
- // Declare second integer, double, and String variables.
- int j = int.Parse(Console.ReadLine());
- double e = Double.Parse(Console.ReadLine());
- string w = Console.ReadLine();
- // Read aĆā¬[nd save an integer, double, and String to your variables.
- double x = e + d;
- // Print the sum of both integer variables on a new line.
- Console.WriteLine((i+j));
- // Print the sum of the double variables on a new
- Console.WriteLine(String.Format("{0:0.0}", x));
- // Concatenate and print the String variables on a new line
- Console.WriteLine(s+w);
- // The 's' variable above should be printed first.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement