Created
April 28, 2019 19:10
-
-
Save raushankrjha/3e9de6d4da82a4827e9303303130c3e4 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() | |
{ | |
//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