How to Print Multiple variables in C#

 



using System;

public class csharp{

public static void Main(){

    int RollNo;

    string Name;

    float ID;

Console.WriteLine(" enter the RollNo");

    RollNo= int.Parse(Console.ReadLine());

    Console.WriteLine(" enter the Name");

    Name=Console.ReadLine();

    Console.WriteLine(" enter the ID");

    ID= float.Parse(Console.ReadLine());

    Console.WriteLine("your RollNo is "+ RollNo +"\nYour Name is "+Name +" \nYour ID is "+ ID);

}

}


Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.