Use printn rather than println. Add string methods for copying.

This commit is contained in:
Christoffer Lerno
2023-02-04 15:38:06 +01:00
committed by Christoffer Lerno
parent 6b928c7a3d
commit dce171670f
39 changed files with 1627 additions and 677 deletions

View File

@@ -16,7 +16,7 @@ fn int main()
{
int maxDiv;
int count;
io::println("The first 20 anti-primes are:");
io::printn("The first 20 anti-primes are:");
int n = 1;
while (count < 20)
{
@@ -29,6 +29,6 @@ fn int main()
}
n++;
}
io::println("");
io::printn("");
return 0;
}

View File

@@ -2,6 +2,6 @@ import std::io;
fn int main()
{
io::println("Hello world");
io::printn("Hello world");
return 0;
}