+ 1
I'm having trouble making the user input line with what I'm typing. Is anyone able to find a way to fix my code?
5 Answers
+ 1
The code works fine.
Just notice
You are asking age first.
After that you are asking for the name
23
Alice
Works fine to drink a beer with Alice
+ 1
If you want to enter age and compare it with integer in if statement
You first need to convert you age which is in string type to integer type.
Because this cause error because it can't use operand between string and int.
+ 1
I'm trying to get yourAge to equal Age but I get errors regardless of what I try
0
You are using Console.ReadLine twice for YourAge.
The second time over writes the first time.
https://code.sololearn.com/cmYq3CnSIjIO