Last active
May 16, 2023 15:39
-
-
Save Strelok78/01e3926ce1302b2c8c9459227d640e95 to your computer and use it in GitHub Desktop.
Asking user: "what is your name", "what is your zodiac sign", etc., after which, according to the data that he led, create a small text about the user. "Your name is X, you are Y years old, you are an Z and you work at a W."
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
namespace MyCode | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int age; | |
string name; | |
string sign; | |
string workingPlace; | |
Console.Write("What is your name? "); | |
name = Console.ReadLine(); | |
Console.Write("How old are you? "); | |
age = int.Parse(Console.ReadLine()); | |
Console.Write("What is your zodiac sign? "); | |
sign = Console.ReadLine(); | |
Console.Write("Where you work at? "); | |
workingPlace = Console.ReadLine(); | |
Console.Write($"Your name {name}, you are {age} years old , you are an {sign} and you work at a {workingPlace}."); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment