Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.IO;
- namespace TestDelete
- {
- class Solution
- {
- static void Main(String[] args)
- {
- int i = 4;
- double d = 4.0;
- string s = "HackerRank ";
- // Declare second integer, double, and String variables.
- int myI = 12;
- double myD = 4.0;
- string myS = "is the best place to learn and practice coding!";
- // Read and save an integer, double, and String to your variables.
- int input1 = i + myI;
- double input2 = d + myD;
- // input3 = Convert.ToDouble(d);
- string myString = s + myS;
- // Print the sum of both integer variables on a new line.
- Console.WriteLine(input1);
- // Print the sum of the double variables on a new line.
- Console.WriteLine(input2);
- // Concatenate and print the String variables on a new line
- Console.WriteLine(myString);
- // The 's' variable above should be printed first.
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement