Files
overcode/demo.ovc

69 lines
1.5 KiB
Plaintext

<?py
# Welcome to OverCode Demo!
print("🚀 OverCode v2.0.0-ULTRA Demo")
print("=" * 40)
import random
import time
print("🐍 Python is running!")
print("Random number:", random.randint(1, 100))
# Simple algorithm demo
def fizzbuzz(n):
for i in range(1, n + 1):
if i % 15 == 0:
print("FizzBuzz")
elif i % 3 == 0:
print("Fizz")
elif i % 5 == 0:
print("Buzz")
else:
print(i)
print("\nFizzBuzz Demo:")
fizzbuzz(10)
?>
<?js
// JavaScript section
console.log("\n🟨 JavaScript is active!");
const languages = ["Python", "JavaScript", "PHP", "Go", "Rust"];
console.log("Supported languages:", languages.join(", "));
// Modern JS features
const multiply = (a, b) => a * b;
console.log("Arrow function result:", multiply(7, 6));
// Async demo (without actual async)
console.log("🚀 OverCode supports modern JavaScript!");
?>
<?php
// PHP demonstration
echo "\n🐘 PHP is working!\n";
class OverCodeDemo {
public $version = "2.0.0-ULTRA";
public function showFeatures() {
$features = [
"20+ Programming Languages",
"12+ Built-in Games",
"5 Beautiful Themes",
"Developer Tools",
"Package Manager"
];
echo "OverCode Features:\n";
foreach ($features as $feature) {
echo "• $feature\n";
}
}
}
$demo = new OverCodeDemo();
echo "Version: " . $demo->version . "\n";
$demo->showFeatures();
?>