English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

4 answers

for (i = 1; i < 11; i++){
int k = 1;
for (j = 0; j < i; j++){
k *= 2;
}
cout << "x = " << i << " k = " << k << endl;
}

2006-11-04 11:33:07 · answer #1 · answered by sterno73 3 · 1 0

if there are 2 or extra parallel lines on the airplane.then their slope with know to effective x-axis would be same there is basically one thank you to unravel such question, acquire the slope of all of the lines and equate them. methods of obtaing the Slops are a million.write the equation of line in sort of : y=mx+c in this way cofficient of y must be =a million c is consistent and m would be equivalent to the slope of the line get the slope (m) of the two or all of the lines and equate them. resolve it and all genuine answer of the equation is the respective answer of the question in this quesion y=[(ok+2)/3]x + 5 and y=[2/(ok+3)]x - 6 as the two ought to have an identical slope subsequently (ok+2)/3=2/(ok+3) which components (ok+2)(ok+3)=2*3 ok^2+5k+6=6 ok^2+5k=0 (ok+5)ok=0 this suggests the two ok=0 or ok=-5 2.lculating slope by Calculus differentiate the two the climate of all of the equations with know to x in this way dy/dx will provide you the slope of the line interior the above question ok+2=3dy/dx and (ok+3)dy/dx =2 are the equation of slope 3.if the equation are in sort of ax+by skill of+c=0 the place a and b are cofficient of x and y respectively subsequently -a/b will provide you the slope of the line

2016-11-27 19:24:20 · answer #2 · answered by Anonymous · 0 0

You dont specify the programming language!
For C like language it should be something like that!



#include
#include

for (int x=0;x<10;x++)
{
int result=0;
result=pow(2,x);
cout << result;
}

2006-11-04 11:39:59 · answer #3 · answered by str1der 3 · 0 1

for(int i=1;i<=11;i++)
{
int k =1;
for(int j=1;j<=i;j++)
k*=2;
printf("2 ^ %d is %d\n",i,k);
}

2006-11-04 18:34:47 · answer #4 · answered by manoj Ransing 3 · 0 1

fedest.com, questions and answers