Skip to content

Instantly share code, notes, and snippets.

@IamFaizanKhalid
Last active February 17, 2020 11:21
Show Gist options
  • Save IamFaizanKhalid/65f5b1a4d4824c071210f1faae3a4b54 to your computer and use it in GitHub Desktop.
Save IamFaizanKhalid/65f5b1a4d4824c071210f1faae3a4b54 to your computer and use it in GitHub Desktop.
File to be used during learning Scala..
#!/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