Advertisement
ZhilinskiyG

Task 0_04

Mar 10th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.     int a;
  7.     cout<< "Input the first number"<<endl;
  8.     cin >> a;
  9.     int b;
  10.     cout<< "Input the second number"<<endl;
  11.     cin >> b;
  12.     int S;
  13.     S = a*b;
  14.     cout << "Input the square of a rectangle"<<endl;
  15.     cout << S<<endl;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement