C# user input ⌨️

C# user input ⌨️

Bro Code

3 года назад

56,561 Просмотров

C# user input tutorial example explained

#C# #user #input

using System;

namespace MyFirstProgram
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("What's your age?");
String name = Console.ReadLine();

Console.WriteLine("What's your age?");
int age = Convert.ToInt32(Console.ReadLine());

Console.WriteLine("Hello " + name);
Console.WriteLine("You are " + age + " years old");

Console.ReadKey();
}
}
}

Тэги:

#visual_studio #visual_studio_setup_c# #C#_Tutorial_For_Beginners #c_sharp_tutorial_for_beginners #What_Is_C# #C#_Explained #what_is_c_sharp #c_sharp_explained #learn_c# #learn_c_sharp #tutorial #mmtuts #beginner_friendly_c_sharp_course #c# #c_sharp #c#_tutorial #c_sharp_tutorial #beginner_course_in_c# #beginner_course_in_c_sharp #learn_c_sharp_easily #learn_c#_easily #class #classes_in_c# #objects_in_c# #c_sharp_class #user_input_c# #parse_data_in_c# #c#_store_user_data
Ссылки и html тэги не поддерживаются


Комментарии: