int 대선배, 형님, 누님 // (꾸벅).

cout << \"도형면적 구하는 심플 프로그램 짜봤는데 소수점 넣으면 에러뜨네요\";
cout << \"이거 어떻게 고쳐야하나요?\".
cin >> 대선배, 형님, 누님;
cout << \"가르켜주세요.\";


/* 프로그램은 영어로 되어있는데 횽들수준이면 문제없을꺼야.
그래도 이해안가는부분있으면 한글로 고쳐놓을께. 부탁해요
*/

#include <iostream>
using namespace std;

int main()
{
    int length, width, area, area2 ; // 4 ints to hold measurement
    /* area is in square feet
    area2 is in square yards
    */

    cout << \"How long is the piece of land <in feet>? \";
    cin >> length; // get measurement in ft.
    cout << \"How wide is the piece of land <in feet>? \";
    cin >> width;
    area = length * width;
    area2 = area / 9;
    cout << \"The lot has an area of \" << area << \" square feet, which is \" << area2 << \" square yards.\" << endl;

    return 0;
}





//교정후, 관점은 int 에서  double length, width, area, area2 로 고치는것


#include <iostream>
using namespace std;

int main()
{
    double length, width, area, area2 ; // 4 ints to hold measurement
    /* area is in square feet
    area2 is in square yards
    */

    cout << \"How long is the piece of land <in feet>? \";
    cin >> length; // get measurement in ft.
    cout << \"How wide is the piece of land <in feet>? \";
    cin >> width;
    area = length * width;
    area2 = area / 9;
    cout << \"The lot has an area of \" << area << \" square feet, which is \" << area2 << \" square yards.\" << endl;

    return 0;
}