1) Write a program that produces this output:
0 1
1 2
2 4
3 8
4 16
5 32
6 64
Note:
The prototype of
pow() function is: double pow(double, int) or float pow(float, int)
Solution 1: Using
pow() function.
(i=0; i<7; i++)
{
//printf("%d %3.0f\n",i,pow(x,i));
y = pow(x,i);
printf(
"%d %3.0f\n",i,y);
}
return
(0);
}
اللي يعرف يشرح لي السؤال لاني مو عارفه..