+ 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"); } } } }
18 Answers
+ 5
@Jamie Bingo !! you got the right post to show.
+ 3
@Jamie agree with you about turbo c++
+ 3
@Jamie yeah.Bro @Yash better use modern compilers. Rather turbo C++. I suggest dev c++(windows),codeblocks (linux)
+ 2
Thank you
+ 2
ohhk ... thanks @N1H4R and @Jamie
+ 2
yeh hui na baat ;)
+ 1
yesh and Jamie, Thanks but havnt learnt turbo c++ yet.
+ 1
it's like a compiler but from now it's useless ...
just stick with Dev++š
+ 1
lol k.
0
why miss Jamie it's work perfect
0
why not c++
0
wait I am using the latest version on my lappi and it's work perfect .
i have done c too on that
- 1
try using turbo c++ it will work but use longint instead of double bcoz it's good for code and also for developer