Created
April 28, 2019 19:30
-
-
Save raushankrjha/62af3d3eef3132224b5a41717d6eaea0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:io'; | |
main() | |
{ | |
var num1,num2,num3; | |
stdout.write("Enter First Number: "); | |
num1=int.parse(stdin.readLineSync()); | |
stdout.write("Enter Second Number: "); | |
num2=int.parse(stdin.readLineSync()); | |
stdout.write("Enter Third Number: "); | |
num3=int.parse(stdin.readLineSync()); | |
if(num1 > num2 && num1 > num3) | |
{ | |
print("$num1 is largest number"); | |
} | |
else if(num2 > num1 && num2 > num3) | |
{ | |
print("$num2 is largest number"); | |
} | |
else | |
{ | |
print("$num3 is largest number"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment