Skip to content

Instantly share code, notes, and snippets.

@IvanEnginer
Created August 10, 2024 13:20
Show Gist options
  • Save IvanEnginer/e3230da662ab7b5a98200724141e01c1 to your computer and use it in GitHub Desktop.
Save IvanEnginer/e3230da662ab7b5a98200724141e01c1 to your computer and use it in GitHub Desktop.
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}.");
}
}
}
@av1934413
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment