Skip to content

Instantly share code, notes, and snippets.

View acald-creator's full-sized avatar

Antonette Caldwell acald-creator

View GitHub Profile
@acald-creator
acald-creator / carbon-language-examples.md
Last active May 9, 2023 01:54
Carbon Language Examples

If-Else statements

package sandbox api;

fn GuessNumber(num: i32) {
    if (num == 7) {
        Print("You guessed correctly!");
    } else if (num < 7) {
        Print("Too low");