Question: Hi, i need discussion for this code. please no hand writing. thanks. //Program 10.1 #include #include // 1. Write down an appropriate directive here int

Hi, i need discussion for this code.

please no hand writing.

thanks.

//Program 10.1

#include

#include

// 1. Write down an appropriate directive here

int main()

{

int a = sqrt(9);

printf(" 1. sqrt(9) is %d ", a);

int i = pow(5,3);

printf(" 2. pow(5,3) is %d ", i);

int j = ceil(2.5);

printf(" 3. ceil(2.5) is %d ", j);

int k = floor(2.5);

printf(" 4. floor(2.5) is %d ", k);

int x = ceil(2.1);

printf(" 5. ceil(2.1) is %d ", x);

int y = floor(2.1);

printf(" 6. floor(2.1) is %d ", y);

getch();

return 0;

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!