0

Que está mal? En los casos me salen 2 bien y el primero vacio...tiene errores?

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 edad = Convert.ToInt32 (Console.ReadLine()); Console.WriteLine("Name: "+ name); Console.WriteLine ("Edad: "+ edad); } } }

20th Jun 2021, 6:55 PM
anibal heredia
anibal heredia - avatar
9 Antworten
+ 4
you get more answers by tagging your post with java and show code in codeplayground
20th Jun 2021, 7:12 PM
Oma Falk
Oma Falk - avatar
0
what this code is about? add link or problem description here..anibal heredia
20th Jun 2021, 7:28 PM
Jayakrishna 🇮🇳
0
Es el 5.2 del principio
20th Jun 2021, 7:31 PM
anibal heredia
anibal heredia - avatar
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 edad = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Name: "+ name); Console.WriteLine("Edad: "+ edad); } } }
20th Jun 2021, 7:31 PM
anibal heredia
anibal heredia - avatar
0
Esta bien pero no me lo aprueba
20th Jun 2021, 7:32 PM
anibal heredia
anibal heredia - avatar
0
use "Age" in output
20th Jun 2021, 7:40 PM
Jayakrishna 🇮🇳
0
Yes! Thanks!
20th Jun 2021, 7:43 PM
anibal heredia
anibal heredia - avatar
0
Need this : Console.WriteLine("Age: "+ edad); You are doing it in your language but it asking to print "age" text in english in this Console.WriteLine("Edad: "+ edad); Edit: You're welcome..
20th Jun 2021, 7:45 PM
Jayakrishna 🇮🇳
0
Gracias
20th Jun 2021, 7:46 PM
anibal heredia
anibal heredia - avatar