+ 1

Can someone explain to me why this app used double and not int? (I know int will work)

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { int age = 42; double money = 540; if(age > 18 && money > 100) { Console.WriteLine("Welcome"); } } } }

25th Dec 2017, 6:34 PM
Eli Bitton
Eli Bitton - avatar
18 Respuestas
+ 5
@Jamie Bingo !! you got the right post to show.
25th Dec 2017, 8:12 PM
N1H4R
N1H4R - avatar
+ 3
@Jamie agree with you about turbo c++
25th Dec 2017, 8:04 PM
N1H4R
N1H4R - avatar
+ 3
@Jamie yeah.Bro @Yash better use modern compilers. Rather turbo C++. I suggest dev c++(windows),codeblocks (linux)
25th Dec 2017, 8:08 PM
N1H4R
N1H4R - avatar
+ 2
Thank you
25th Dec 2017, 7:06 PM
Eli Bitton
Eli Bitton - avatar
+ 2
ohhk ... thanks @N1H4R and @Jamie
25th Dec 2017, 8:10 PM
Yesh Jadav
Yesh Jadav - avatar
+ 2
yeh hui na baat ;)
25th Dec 2017, 8:22 PM
N1H4R
N1H4R - avatar
+ 1
yesh and Jamie, Thanks but havnt learnt turbo c++ yet.
25th Dec 2017, 8:20 PM
Eli Bitton
Eli Bitton - avatar
+ 1
it's like a compiler but from now it's useless ... just stick with Dev++😂
25th Dec 2017, 8:21 PM
Yesh Jadav
Yesh Jadav - avatar
+ 1
lol k.
25th Dec 2017, 8:22 PM
Eli Bitton
Eli Bitton - avatar
0
why miss Jamie it's work perfect
25th Dec 2017, 7:59 PM
Yesh Jadav
Yesh Jadav - avatar
0
why not c++
25th Dec 2017, 8:05 PM
Yesh Jadav
Yesh Jadav - avatar
0
wait I am using the latest version on my lappi and it's work perfect . i have done c too on that
25th Dec 2017, 8:07 PM
Yesh Jadav
Yesh Jadav - avatar
- 1
try using turbo c++ it will work but use longint instead of double bcoz it's good for code and also for developer
25th Dec 2017, 7:57 PM
Yesh Jadav
Yesh Jadav - avatar