Last active
February 17, 2020 11:21
-
-
Save IamFaizanKhalid/65f5b1a4d4824c071210f1faae3a4b54 to your computer and use it in GitHub Desktop.
File to be used during learning Scala..
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
#!/bin/bash | |
exec scala "$0" "$@" | |
!# | |
args.foreach(arg => print(arg+" ")) | |
println("\n") | |
args.foreach(println) | |
println("\n") | |
var i=0; | |
while (i< args.length) | |
{ | |
if (args(i).toInt%2==0) | |
println(args(i)) | |
i+=1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment