+ 1

Please help me with my code

I need someone to help me with my code: https://code.sololearn.com/c58DZj74v0XW/#cs the explanation is there in the comments. Thx in advance =D

15th Apr 2017, 1:08 PM
Samuel Auditama
Samuel Auditama - avatar
3 Answers
+ 16
@Samuel You are converting temperatures...So there's no need of using a String! You just make a new variables as by using double data types or any other than string or char and start off... Here you can't use only one variable var for every case. Instead, you could use other different variables...and its very complicated to know that you're sleeping and writing xD
15th Apr 2017, 1:34 PM
Dev
Dev - avatar
+ 15
Console.WriteLine(Convert.ToDouble()); or double.Parse("', System.Globalization.CultureInfo.InvariantCulture)
15th Apr 2017, 1:15 PM
Dev
Dev - avatar
0
1. I tried the Convert.ToDouble, but it gave me an error, "string cant implicitly be converted into double" 2. im not familiar with double.parse, nor do i know how to use it or where to insert it. As you can see, im still just level 3 (4 i think? i just won some challenge) so my skill is relatively low 3. do think maybe i should make a new variable as a placeholder, then i could convert the placeholder instead, its not implicit right? 4. there is some more stuff at the bottom of the code, about variables, could you also help me with that? Thanks for your time =)
15th Apr 2017, 1:24 PM
Samuel Auditama
Samuel Auditama - avatar