• + 0 comments

    in C# this works

      // Declare second integer, double, and String variables.
        int secondInteger;
        double secondDouble; 
        string secondText;
    
        // Read and save an integer, double, and String to your variables.
         secondInteger = int.Parse(Console.ReadLine());
         secondDouble = double.Parse(Console.ReadLine());
         secondText = Console.ReadLine();
    
        // Print the sum of both integer variables on a new line.
        Console.WriteLine(secondInteger+i);
    
        // Print the sum of the double variables on a new line.
        double var3 = secondDouble+d;
         Console.WriteLine(var3.ToString("F1"));
    
        // Concatenate and print the String variables on a new line
        // The 's' variable above should be printed first.
        Console.WriteLine(s+""+secondText);
    
    
    }