next up previous contents index
Next: 登録関数の表示(matxのみ) Up: コマンドと便利な機能 Previous: キーボードからの入力と編集

入出力

C 言語と同様にデータを画面に書式を指定して出力(printf())したり データをキーボードから読み込む(scanf())ことができる。     入出力の例を次に示す。

  printf("%d %lf %s", 10, 3.1415, "Hello")

  {a, b, c} = scanf("%d %lf %s")
  print a, b, c




Masanobu KOGA 平成10年8月19日