0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

lazeの作法

Posted at

概要

lazeを見つけたので、やってみた。

参考にしたページ。

hello world

print("hello world!");

fizzbuzz

function: main() => () {
	int: i = 0;
	repeat (100)
	{
		i++;
		if (i % 15 == 0)
		{
			print("FizzBuzz");
		}
		else if (i % 5 == 0)
		{
			print("Buzz");
		}
		else if (i % 3 == 0)
		{
			print("Fizz");
		}
		else
			print(i);
	}
}

zundoko

function: main() => () {
	int: i = 0;
	repeat(100)
	{
		if (rand() < 0.5)
		{
			i++;
			print("zun");
		}
		else
		{
			i = 0;
			print("doko");
		}
		if (i > 3)
		{
			print("doko");
			print("kiyosi!");
			break;
		}
	}
}

九九

function: main() => () {
	(int: i = 1;) from (i == 10) to (i++;)
	{
		string: str = "";
		(int: j = 1;) from (j == 10) to (j++;)
		{
			str += i * j;
			str += " ";
		}
		print(str);
	}
}

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?