Help I got stuck on the c# 5.2 practice can someone tell me what to do it just says there are bugs but I can't find them | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Help I got stuck on the c# 5.2 practice can someone tell me what to do it just says there are bugs but I can't find them

I'm stuck on c# 5.2 practice. You are making an authorization program for your application. The given code takes the name of the person as input and outputs it in the given format. Complete the program to also take their age as input and output the corresponding text in the provided format. Sample Input Tom 26 Sample Output Name: Tom Age: 26

14th Aug 2021, 11:49 PM
dark Apprentice
6 Answers
0
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Code_Coach_Challenge { class Program { static void Main(string[] args) { string name = Console.ReadLine(); int age = Convert.ToInt32(Console.ReadLine()); Console.Write("Name: {0}\nAge: {1}", name, age); } } }
16th Aug 2021, 7:33 PM
Дегтярев Петр
Дегтярев Петр - avatar
+ 4
Please post your code in the code playground, then post a link to it here. Please also post the task description, (most) people here don't know off the top of their head what c# 5.2 is about.
15th Aug 2021, 12:33 AM
Simon Sauter
Simon Sauter - avatar
+ 3
You are making an authorization program for your application. The given code takes the name of the person as input and outputs it in the given format. Complete the program to also take their age as input and output the corresponding text in the provided format. Sample Input Tom 26 Sample Output Name: Tom Age: 26
15th Aug 2021, 2:21 AM
dark Apprentice
15th Aug 2021, 2:18 AM
dark Apprentice
+ 1
It is on user authorization
15th Aug 2021, 2:19 AM
dark Apprentice
+ 1
Thank you everyone
19th Aug 2021, 1:39 AM
dark Apprentice