Computer Science, asked by maheshjntuh5447, 7 months ago

Construct a flowchart and write an algorithm to interchange two variable values

Answers

Answered by sowmyau1979
1

Answer:

pls mark me as brainliest

Explanation:

Write algorithm for swapping contents of two variables.

Algorithm:

1. Start

2. Read value of A

3. Read value of B

4. C=A

5. A=B

6. B=C

7. Print A

8. Print B

9. End

Example 8:

Write an algorithm to find the summation of numbers from 0 to 15.

1. Start

2. I=0

3. Sum=0

4. Sum=Sum+I

5. if I =15 then

Goto 6

else

I=I+1

Goto 4

endif

6. print Sum

7. stop

Example 9:

Write an algorithm to sum the odd numbers between 10 and 200.

1. Start

2. I=11

3. Sum=0

4. Sum=Sum+I

5. if I = 199 then

Similar questions