c++espresso 1 5장 프로그래밍 대학교재솔루션 (c언어)
c++espresso 1-5장 프로그래밍
c++espresso 1-5장 프로그래밍1.1
#include
using namespace std;
int main()
{
unsigned short int length, width, height;
cout<<"상자의 길이,넓이,높이를 입력"<
unsigned int result = length*width*height;
cout<<"상자의 체적: "<
}
1.2
#include
#define P 3.3058
using namespace std;
int main()
{
double m2;
cout<<"평수: ";
cin>>m2;
cout<<"1평당 평방미터는"<
cout< return 0;
}
1.3
#include
#define Feet 12
#define Inch 2.54
using namespace std;
int main()
{
double cm, i;
int p;
cout<<"키를 입력하시오:";
cin>>cm;
p = cm/Inch/Feet;
i = cm/Inch - p*Feet;
cout<<"1피트는"< cout<}
1.4
#include
#define second 60
using namespace std;
int main()
{
int h,m,s;
cout<<"시간을 입력하시오."< cin>>h>>m>>s;
}
1.3
#include
#define Feet 12
#define Inch 2.54
using namespace std;
int main()
{
double cm, i;
int p;
cout<<"키를 입력하시오:";
cin>>cm;
p = cm/Inch/Feet;
i = cm/Inch - p*Feet;
cout<<"1피트는"<
1.4
#include
#define second 60
using namespace std;
int main()
{
int h,m,s;
cout<<"시간을 입력하시오."<
| [1] | [2] | [3] | [4] | [5] | [6] | [7] | [8] | [9] | [10] |
자료출처 : http://www.ALLReport.co.kr/search/detail.asp?pk=11047917&sid=qjfRnf777&key=
댓글 없음:
댓글 쓰기