-
Notifications
You must be signed in to change notification settings - Fork 4
Examples
Techcraft7 edited this page Jan 12, 2021
·
10 revisions
Here are some examples of 7Sharp code to help people learn the language!
write("Hello, World!");writeraw("Enter name: ");
name = read();
write("Hello, " + name + "!");writeraw("Enter name: ");
write("Hello, " + read() + "!");loop (10) {
write(getLoopIndex() + 1);
}loop(5) {
loop(5) {
write("i = " + getLoopIndex(1) + " j = " + getLoopIndex());
}
}a = double(0);
b = double(1);
c = double(0);
loop (50) {
c = a + b;
b = a;
a = c;
write(c);
}loop (16) {
bgColor(getLoopIndex());
loop (16) {
writeraw("X");
fgColor(getLoopIndex());
}
write("");
}
resetColor();
