Skip to content

Instantly share code, notes, and snippets.

@umutakturk
Created October 19, 2012 20:32
Show Gist options
  • Select an option

  • Save umutakturk/3920559 to your computer and use it in GitHub Desktop.

Select an option

Save umutakturk/3920559 to your computer and use it in GitHub Desktop.

Revisions

  1. K. Umut Aktürk created this gist Oct 19, 2012.
    57 changes: 57 additions & 0 deletions test.cpp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    #include <iostream>

    using namespace std;

    int main()
    {
    /*
    int a, b;
    a = 10;
    b = 4;
    a = b;
    b = 7;
    cout << "a:";
    cout << a;
    cout << "b:";
    cout << b;
    */

    /*
    int a, b, c, sum;
    cout << "Please enter the first number" << endl;
    cin >> a;
    cout << "Please enter the second number" << endl;
    cin >> b;
    cout << "Please enter the third number" << endl;
    cin >> c;
    sum = a + b + c;
    cout << "Sum of numbers = " << sum << endl;
    */


    /*
    double es, lr, sr, area, perimeter;
    cout << "Please enter edge of square" << endl;
    cin >> es;
    cout << "Please enter long length" << endl;
    cin >> lr;
    cout << "Please enter short length" << endl;
    cin >> sr;
    area = es * es;
    perimeter = (lr + sr) * 2;
    cout << "Area of square = " << area << endl;
    cout << "Perimeter of rectangle = " << perimeter << endl;
    */

    return 0;
    }