以下のプログラムを実行する前に、結果を予測して、実行してみて予測と結果を比べてみなさい。
100 -96 3 3 0 1.04667 1
1.C++で使える基本の型をすべて挙げなさい。
char, short, int, long, float, double, bool
2.以下のような問題があった時、用意しなければならない変数を考えなさい。
//カウンタ int i //和 int sum
//底辺 float bottom //高さ float height //面積 float area;
//座標 float x1, x2, y1, y2 //傾き float tangent;
//係数用の変数 float a, b, c //判別氏起用の変数 float d