mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Use printn rather than println. Add string methods for copying.
This commit is contained in:
committed by
Christoffer Lerno
parent
6b928c7a3d
commit
dce171670f
@@ -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;
|
||||
}
|
||||
@@ -2,6 +2,6 @@ import std::io;
|
||||
|
||||
fn int main()
|
||||
{
|
||||
io::println("Hello world");
|
||||
io::printn("Hello world");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user