//============================================================================
// 제출일 : 2005. 3. 12
// 작업환경 : Windows XP SP1, VC++ 6.0, Pentium4
// 연습문제 4-40
//============================================================================
#include <iostream.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
int main()
{
float number;
int rand_num;
float product;
//Process No.
cout << "Enter a number\n"; //1
cin >> number; //2
cout << number << "\n"; //3
srand(time(NULL)); //Seed Initianlization //4
rand_num = rand()%35+3; //Get a Random number
cout << rand_num << "\n"; //5
product = number * rand_num; //6
cout << ceil(product)<< "\n"; //7
cout << pow(number, 5)<< "\n"; //8
cout << floor (product)<< "\n"; //9
cout << pow(number, 5)<< "\n"; //10
cout << sqrt(product)<< "\n"; //11
return 0;
}