Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Integer-comparison/R/integer-comparison.r
Normal file
11
Task/Integer-comparison/R/integer-comparison.r
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
print("insert number a")
|
||||
a <- scan(what=numeric(0), nmax=1)
|
||||
print("insert number b")
|
||||
b <- scan(what=numeric(0), nmax=1)
|
||||
if ( a < b ) {
|
||||
print("a is less than b")
|
||||
} else if ( a > b ) {
|
||||
print("a is greater than b")
|
||||
} else if ( a == b ) { # could be simply else of course...
|
||||
print("a and b are the same")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue