How to take Integer input from user in C#

 



using System;

public class csharp{

public static void Main(){

    int s;

Console.WriteLine(" enter the value");

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

    Console.WriteLine("your answer is "+ s);

}

}


Post a Comment

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