-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
dc110d6
commit 5dab18a
Showing
4 changed files
with
39 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
If (Clock.Hour<12) Then | ||
TextWindow.WriteLine("Good Morning World!") | ||
TextWindow.WriteLine("Did you have breakfast?") | ||
EndIf | ||
|
||
If (Clock.Hour>=12) Then | ||
TextWindow.WriteLine("Good Evening World!") | ||
TextWindow.WriteLine("Did you have lunch?") | ||
EndIf |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
If (Clock.Hour<12) Then | ||
TextWindow.WriteLine("Good Morning World!") | ||
TextWindow.WriteLine("Did you have breakfast?") | ||
Else | ||
TextWindow.WriteLine("Good Evening World!") | ||
TextWindow.WriteLine("Did you have lunch?") | ||
EndIf |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
TextWindow.Write("Enter a number: ") | ||
n = TextWindow.ReadNumber() | ||
|
||
If (Math.Remainder(n,2)=0) Then | ||
TextWindow.WriteLine("The number is Even.") | ||
Else | ||
TextWindow.WriteLine("The number is Odd.") | ||
EndIf |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
TextWindow.WriteLine("This program calculates BMI.") | ||
TextWindow.WriteLine("") | ||
|
||
TextWindow.Write("Please enter your weight in KiloGrams (kg): ") | ||
W = TextWindow.ReadNumber() | ||
|
||
TextWindow.Write("Please enter your height in Meters (m): ") | ||
H = TextWindow.ReadNumber() | ||
|
||
BMI = W/(H*H) | ||
|
||
TextWindow.WriteLine("") | ||
TextWindow.WriteLine("Your BMI = " + BMI) | ||
TextWindow.WriteLine("") | ||
|