+ 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
7 Réponses
+ 2
here ist the code for you
(i use only sololearn no FB, Instagram, Snapchat,skype)
https://code.sololearn.com/c7kb79Ff0Clg/?ref=app
+ 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.
+ 4
Parse convert string , decimal , float into int type
+ 3
don't confuse with int and int32
+ 1
Thanks Ill try and see, hope you are right. But what's a Parse?
+ 1
oh ok thanks because I havent learnt it yet.
+ 1
tnx dude for everything but now im having another problem, it isnt reading x. btw do you have skype?