Write a program to output all odd numbers between 1 and 100

Write a program to output all odd numbers between 1 and 100


Do you use C + + language?
That should be easy
for(int i = 1; i < 100; i+=2)
cout



The odd numbers starting from 1 are accumulated in order until the sum is equal to or greater than 100. It is required to output the formula representing the addition of these odd numbers and the result of operation, draw the program block diagram and write the algorithm program
Important is the algorithm program! If there is a block diagram, plus points!


#include
int main()
{
int i=1,sum=0;
while(sum



Given the function f (x) = x / (1 + x), real number A1 = f (1), A2 = f (A1), a n + 1 [that is, the subscript under a is n + 1] = f (a n) [n is the subscript of a]
Try to write the algorithm of A8 represented by loop statement, draw the program diagram and write the algorithm program


x
a1=f(1)=1/(1+1)=1/2
program
float x=0.5
for(int i=0;i



1 / 2 of the horizontal angle is () degree, is () angle?
fast


One half of a horizontal angle is (90) degrees, which is (straight) angle



If the difference between the complement of an angle and two times of its remainder is 14 times that of a plane angle, find the degree of the angle


Let the degree of this angle be X. according to the meaning of the title, (180 ° - x) - 2 (90 ° - x) = 14 × 180 ° and the solution is x = 45 °, that is, the angle is 45 °



The sum of the complement of an angle and the remainder of the angle is 18 ° less than that of a flat angle


Let the angle be ∠ X
(180°—∠x)+(90°-∠x)-180°=-18°
-2∠x=-108°
∠x=54°



The difference between the complementary angle of an angle and its complementary angle is 13 times that of a horizontal angle


Let the angle be x, (180 ° - x) - 2 (90 ° - x) = 180 × 13 = 60 °. A: the angle is 60 °



Given that the remainder of an acute angle is 3 / 7 of its complement, find the complement degree of the acute angle


Let this angle be a
The remaining angle is 90-a
The complement is 180-a
90-A=3(180-A)/7
630-7A=540-3A
A=22.5°
Therefore, the complementary angle is 180-22.5 = 157.5 degrees



The remainder of an acute angle is one third of the complement of the acute angle?
A series of equations,


Let the degree of this acute angle be x degrees
90-X=(180-X)*1/3
3(90-X)=180-X
270-3X=180-X
2X=90
X=45



The remainder of an acute angle is 1? 4 of the complement of the acute angle. Find the degree of the acute angle and its remainder
It's a process


Let the degree of this acute angle be X
that
90-x=1/4(180-x)
360-4x=180-x
3x=180
x=60
A: the angle is 60 degrees