Created
September 13, 2019 19:37
-
-
Save raushankrjha/db1f4147d747f1d4c49fd62a57926238 to your computer and use it in GitHub Desktop.
This file contains hidden or 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() | |
{ | |
//WA Program to Swap Numbers Using Temporary Variable | |
var num1,num2,temp; | |
stdout.write("Enter first Number: "); | |
num1=int.parse(stdin.readLineSync()); | |
stdout.write("Enter Second Number: "); | |
num2=int.parse(stdin.readLineSync()); | |
temp=num1; | |
num1=num2; | |
num2=temp; | |
print("After Swaping first number is $num1"); | |
print("After Swaping second number is $num2"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is this right or wrong?