Created
August 10, 2024 13:20
-
-
Save IvanEnginer/e3230da662ab7b5a98200724141e01c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace HW_1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string firstName; | |
string lastName; | |
string town; | |
string country; | |
int age; | |
int luckyNumber; | |
float weight; | |
float height; | |
Console.WriteLine("Как тебя зовут?"); | |
firstName = Console.ReadLine(); | |
Console.Clear(); | |
Console.WriteLine("Какая у тебя фамилия?"); | |
lastName = Console.ReadLine(); | |
Console.Clear(); | |
Console.WriteLine("В каком городе ты живешь?"); | |
town = Console.ReadLine(); | |
Console.Clear(); | |
Console.WriteLine("В какой стране вы живете?"); | |
country = Console.ReadLine(); | |
Console.Clear(); | |
Console.WriteLine("Ваше счасливое число?"); | |
luckyNumber = int.Parse(Console.ReadLine()); | |
Console.Clear(); | |
Console.WriteLine("Ваш весь?"); | |
weight = float.Parse(Console.ReadLine()); | |
Console.Clear(); | |
Console.WriteLine("Ваш рост?"); | |
height = float.Parse(Console.ReadLine()); | |
Console.Clear(); | |
Console.WriteLine($"Вас зовут {firstName} {lastName}. \n" + | |
$"Вы живете в {country} город {town}. \n" + | |
$"Ваше счасливое число {luckyNumber}. \n" + | |
$"Ваш рост {height}, а ваш вес {weight}."); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍