+ 1

Hi please can someon help me figure out why my program doesnt output anything?

I am trying to test what I know till this moment but having trouble with this output. I am trying to set x the number that I input. https://code.sololearn.com/cn7t07O9sE28/?ref=app

17th May 2017, 4:21 PM
Bassam Odaymat
Bassam Odaymat - avatar
7 Respuestas
+ 2
here ist the code for you (i use only sololearn no FB, Instagram, Snapchat,skype) https://code.sololearn.com/c7kb79Ff0Clg/?ref=app
17th May 2017, 5:24 PM
MR Programmer
MR Programmer - avatar
+ 4
use Console.ReadLine(); to read a string then convert it to int int x = Int32.Parse(Console.ReadLine()); the reason why it is giving wrong result; Console.Read(); reads a charecter and your using it as int so it is giving you the Ascii of the character.
17th May 2017, 4:30 PM
MR Programmer
MR Programmer - avatar
+ 4
Parse convert string , decimal , float into int type
17th May 2017, 5:00 PM
MR Programmer
MR Programmer - avatar
+ 3
don't confuse with int and int32
17th May 2017, 5:27 PM
MR Programmer
MR Programmer - avatar
+ 1
Thanks Ill try and see, hope you are right. But what's a Parse?
17th May 2017, 4:37 PM
Bassam Odaymat
Bassam Odaymat - avatar
+ 1
oh ok thanks because I havent learnt it yet.
17th May 2017, 5:02 PM
Bassam Odaymat
Bassam Odaymat - avatar
+ 1
tnx dude for everything but now im having another problem, it isnt reading x. btw do you have skype?
17th May 2017, 5:15 PM
Bassam Odaymat
Bassam Odaymat - avatar