LoginSignup
0

posted at

pythonのインタプリンタで四則演算する

はじめに

プログラミング初心者が最初にやるお試し計算の記録です

ゴール

pythonのインタプリンタで四則演算を行い解を表示する

手順

足し算
>>> 5 + 5
10
引き算
>>> 50 - 5
45
掛け算
>>> 10 * 10
100
割り算
>>> 100 / 10
10.0

終わりに

足し算引き算掛け算は整数表示(int型)になるが、割り算の場合は必ず小数点表示(float型)になる。

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
What you can do with signing up
0