Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
17
Task/Integer-comparison/Vala/integer-comparison.vala
Normal file
17
Task/Integer-comparison/Vala/integer-comparison.vala
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
void main(){
|
||||
int a;
|
||||
int b;
|
||||
|
||||
stdout.printf("Please type in int 1\n");
|
||||
a = int.parse(stdin.read_line());
|
||||
|
||||
stdout.printf("Please type in int 2\n");
|
||||
b = int.parse(stdin.read_line());
|
||||
|
||||
if (a < b)
|
||||
stdout.printf("%d is less than %d\n", a, b);
|
||||
if (a == b)
|
||||
stdout.printf("%d is equal to %d\n", a, b);
|
||||
if (a > b)
|
||||
stdout.printf("%d is greater than %d\n", a, b);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue