-
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
frankhart2018
committed
Jul 15, 2020
1 parent
c3a9adc
commit 0c204bf
Showing
6 changed files
with
85 additions
and
15 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
#include <stdio.h> | ||
|
||
int sum(int a, int b) { | ||
|
||
return a + b; | ||
} | ||
|
||
int main() { | ||
int hello = sum(1, 2); | ||
printf("The sum = %d", hello); | ||
exit(0); | ||
int a = 1; | ||
int b = 2; | ||
switch(a + b) { | ||
case 1: | ||
printf("Hello"); | ||
break; | ||
case 2: | ||
printf("World"); | ||
break; | ||
default: | ||
printf("Default"); | ||
break; | ||
} | ||
|
||
return 0; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
fun sum(a, b) { | ||
return a + b | ||
} | ||
|
||
MAIN | ||
var hello = sum(1, 2) | ||
print("The sum = {hello}") | ||
exit (0) | ||
var a = 1 | ||
var b = 2 | ||
|
||
switch(a + b) { | ||
case 1: | ||
print("Hello") | ||
break | ||
case 2: | ||
print("World") | ||
break | ||
default: | ||
print("Default") | ||
break | ||
} | ||
END_MAIN |