LoginSignup
0
0

More than 1 year has passed since last update.

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

Posted at

はじめに

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

ゴール

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

手順

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

終わりに

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

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