Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Integer-comparison/Scala/integer-comparison.scala
Normal file
12
Task/Integer-comparison/Scala/integer-comparison.scala
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
object IntCompare {
|
||||
def main(args: Array[String]): Unit = {
|
||||
val a=Console.readInt
|
||||
val b=Console.readInt
|
||||
if (a < b)
|
||||
printf("%d is less than %d\n", a, b)
|
||||
if (a == b)
|
||||
printf("%d is equal to %d\n", a, b)
|
||||
if (a > b)
|
||||
printf("%d is greater than %d\n", a, b)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue