1
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?

中古ノート、買ってみた。 その75

1
Posted at

概要

中古ノート買ってみた。
wsl1のubuntu18.04にgforth入れてみた。
チュートリアルを作ってみた。

TUTORIAL 2

数9を4個つかって1から15までの数を表す式を投入。

Gforth 0.7.0, Copyright (C) 1995-2008 Free Software Foundation, Inc.
Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
Type `bye' to exit
cr 9 9 - 9 9 / . 
1	ok
cr 9 9 / 9 9 / + . 
2	ok
cr 9 9 + 9 + 9 / . 
3	ok
cr 9 9 9 + 9 / dup + . 
4	ok
cr 9 9 9 + 9 / dup + - . 
5	ok
cr 9 dup 9 + 9 + 9 / - . 
6	ok
cr 9 9 9 + 9 / - . 
7	ok
cr 9 9 9 drop 9 / - . 
8	ok
cr 9 9 - 9 * 9 . 
9	ok
cr 9 9 / 9 dup 9 / + . 
10	ok
cr 9 9 9 + 9 / + . 
11	ok
cr 9 dup 9 9 + + 9 / + . 
12	ok
cr 9 9 9 + 9 / dup + + . 
13	ok
cr 9 dup 9 9 + 9 / dup + - + . 
14	ok
cr 9 dup dup 9 + 9 + 9 / - + . 
15	ok
bye

以上。

1
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
1
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?