Изменения в версии 0.3

This commit is contained in:
SkrinVex
2025-12-25 12:48:19 +05:00
parent a3e44d6a58
commit 8ca31ea877
7 changed files with 315 additions and 119 deletions
+25 -12
View File
@@ -1,14 +1,27 @@
{
print("=== Welcome to FoxLang ===");
print("Math test:");
print(20 + 30 * 2);
print("Type something:");
print(input());
{
print("I am inside a block!");
}
int coins = 100;
string playerName = "Alex";
// Коментприй
void showStats() {
print("--- Stats ---");
print("Player: " + playerName);
print("Coins: " + coins);
}
void mainLogic() {
print("Welcome to Fox Game!");
showStats();
print("You found a chest! Adding 50 coins.");
coins = coins + 50;
showStats();
print("Enter new name:");
playerName = input();
print("Updated profile:");
showStats();
}
mainLogic();