diff --git "a/\043futonn.rd\043" "b/\043futonn.rd\043" new file mode 100644 index 0000000..bc6e7bd --- /dev/null +++ "b/\043futonn.rd\043" @@ -0,0 +1,6 @@ +#!/usr/env ruby + +print"ふとんが?" +ans=gets.chomp + +if ans=="ふっとんだ" \ No newline at end of file diff --git "a/\043hello.rd\043" "b/\043hello.rd\043" new file mode 100755 index 0000000..cfa53d9 --- /dev/null +++ "b/\043hello.rd\043" @@ -0,0 +1,6 @@ +#!usr/bin/env ruby +# -*- coding: utf-8 -*- +print("こんにちは!") +print("私の名前はともおです。\n") +print("よろしくおねがいします。\n") +print("\n") \ No newline at end of file diff --git "a/.\043hello.rd" "b/.\043hello.rd" new file mode 120000 index 0000000..484e081 --- /dev/null +++ "b/.\043hello.rd" @@ -0,0 +1 @@ +j2412@jd.koeki-u.ac.jp.1141:1719144525 \ No newline at end of file diff --git a/arumikann.rd b/arumikann.rd new file mode 100644 index 0000000..8b2f590 --- /dev/null +++ b/arumikann.rd @@ -0,0 +1,360 @@ +Loading /etc/skel/.emacs.default... +Loading /usr/koeki/share/emacs/lisp/scroll-in-place.el (source)...done +Loading mozc...done +Loading /usr/koeki/share/emacs/lisp/csv-mode.el (source)...done +Loading term/bobcat...done +Loading /etc/skel/.emacs.default...done +For information about GNU Emacs and the GNU system, type C-h C-a. +Startup with window [1] +user-error: Minibuffer window is not active +(New file) +mozc.el: Starting mozc-helper-process...done +Auto-saving...done +Saving file /home/j2412/Ruby/hello.rd... +Wrote /home/j2412/Ruby/hello.rd +(No changes need to be saved) + is undefined +Auto-saving...done +C-c is undefined +Mark set +C-c C-v is undefined +Mark set +Type q in help window to restore previous buffer +Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + +Invalid choice. Use this command? (no, yes, SPC (space bar) only once, ! use and enable all): + is undefined +Auto-saving...done +Undo [4 times] +Auto-saving...done +scroll-signal-boundary-error: Beginning of buffer [19 times] +Mark set [2 times] +(New file) +scroll-signal-boundary-error: End of buffer [2 times] +C-c C-v is undefined +delete-backward-char: Beginning of buffer [8 times] +Auto-saving...done +Auto-saving...done +Saving file /home/j2412/ruby_1... +Wrote /home/j2412/ruby_1 +(No changes need to be saved) +C- is undefined +C- is undefined diff --git a/hello.rd b/hello.rd new file mode 100755 index 0000000..9eaa7bb --- /dev/null +++ b/hello.rd @@ -0,0 +1,5 @@ +#!usr/bin/env ruby +# -*- coding: utf-8 -*- +print("こんにちは!") +print("私の名前はともおです。\n") +print("よろしくおねがいします。\n") diff --git a/hrllo.rd b/hrllo.rd new file mode 100755 index 0000000..a37613c --- /dev/null +++ b/hrllo.rd @@ -0,0 +1,5 @@ +#!/usr/bin/env ruby +# -*- coding: utf-8 -*- +print("hello!\n") +print("my name is Tomoo\n") +print("nice to meet you\n") diff --git a/kazu.rd b/kazu.rd new file mode 100755 index 0000000..b6d21ed --- /dev/null +++ b/kazu.rd @@ -0,0 +1,7 @@ +#!/usr/bin/env ruby +-*- coding:utf-8 -*- + +kudamono-["りんご","みかん","バナナ"] +puts"好きな数字を入れて、値を取り出そう" +x=gets.to_i +puts kudamono[x] diff --git a/kudamono.rb b/kudamono.rb new file mode 100755 index 0000000..d8410d0 --- /dev/null +++ b/kudamono.rb @@ -0,0 +1,7 @@ +#!/usr/bin/env ruby +#-*- coding:utf-8 -*- + +kudamono=["りんご","みかん","バナナ"] +puts"好きな数字を入れて、値を取り出そう" +x=gets.to_i +puts kudamono[x] diff --git a/ruby_1 b/ruby_1 new file mode 100755 index 0000000..427e576 --- /dev/null +++ b/ruby_1 @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby +#-*- coding: utf-8 -*- + +stand() +tasu1=rand(100) +tasu2=rand(100) +printf("%dと%dを足した数を答えてください。¥n",tasu1,tasu2) +ans-gets.chomp.to_i + +sum=tasu1+tasu2 +printf("答えは%dです。当たったかな?¥n",sum)