Computer Science, asked by Anonymous, 9 months ago

\red{\boxed{\boxed{\boxed{Questions}}}}
Q. What is the use of looping statements??
Q. Write names of different looping statements??
Q. What is the use of FOR NEXT loop??

Answers

Answered by pinjaraarifisha
14

Answer:

  1. In looping, a program executes the sequence of statements many times until the stated condition becomes false. A loop consists of two parts, a body of a loop and a control statement.
  2. There are main three loop statements:
  • For loop: most precise loop in whole statements.
  • While loop is another loop.
  • last one is do-while loop in which statement must executed at once whether condition is true or not.
  • other statements like foreach loop that is use in java, c# etc.

3..)next statement is an iterative, incremental loop statement used to repeat a sequence of statements for a specific number of occurrences. A for... next loop executes a set of statements for successive values of a variable until a limiting value is encountered.

<svg width="250" height="250" viewBox="0 0 100 100">\ \textless \ br /\ \textgreater \ \ \textless \ br /\ \textgreater \ <path fill="pink" d="M92.71,7.27L92.71,7.27c-9.71-9.69-25.46-9.69-35.18,0L50,14.79l-7.54-7.52C32.75-2.42,17-2.42,7.29,7.27v0 c-9.71,9.69-9.71,25.41,0,35.1L50,85l42.71-42.63C102.43,32.68,102.43,16.96,92.71,7.27z"></path>\ \textless \ br /\ \textgreater \ \ \textless \ br /\ \textgreater \ <animateTransform \ \textless \ br /\ \textgreater \ attributeName="transform" \ \textless \ br /\ \textgreater \ type="scale" \ \textless \ br /\ \textgreater \ values="1; 1.5; 1.25; 1.5; 1.5; 1;" \ \textless \ br /\ \textgreater \ dur="2s" \ \textless \ br /\ \textgreater \ repeatCount="40"> \ \textless \ br /\ \textgreater \ </animateTransform>\ \textless \ br /\ \textgreater \ \ \textless \ br /\ \textgreater \ </svg>

<!DOCTYPE html> <html> <svg width="100%" height="300px">\ \textless \ br /\ \textgreater \ <g id="R1" transform="translate(250 250)"> \ \textless \ br /\ \textgreater \ <ellipse rx="100" ry="0" opacity=".3">\ \textless \ br /\ \textgreater \ <animateTransform attributeName="transform" type="rotate" dur="7s" from="0" to="360" repeatCount="indefinite" />\ \textless \ br /\ \textgreater \ <animate attributeName="cx" dur="8s" values="-20; 220; -20" repeatCount="indefinite" />\ \textless \ br /\ \textgreater \ <animate attributeName="ry" dur="3s" values="10; 60; 10" repeatCount="indefinite" />\ \textless \ br /\ \textgreater \ </ellipse>\ \textless \ br /\ \textgreater \ </g><use xlink:href="#R1" transform="rotate(72 390 150)" />\ \textless \ br /\ \textgreater \ <use xlink:href="#R1" transform="rotate(144 390 150)" />\ \textless \ br /\ \textgreater \ <use xlink:href="#R1" transform="rotate(216 390 150)" />\ \textless \ br /\ \textgreater \ <use xlink:href="#R1" transform="rotate(288 390 150)" />\ \textless \ br /\ \textgreater \ </svg></body></html>

Answered by Anonymous
10

Answer:

In looping, a program executes the sequence of statements many times until the stated condition becomes false. A loop consists of two parts, a body of a loop and a control statement

THERE ARE TWO TYPES OF LOOP.

1)-ENTRY CONTROLLED LOOP.

Which checks the condition and then executes and will not execute if the condition is false.

2)-EXIT CONTROLLED LOOP

Which executes first and then checks the condition. Even if the condition will be wrong

they will execute once.

The for … next loop is a very simple way of carrying out a set of instructions for a definite number of times. ... but I only know that visual basic has it as for … next, we do not use braces.

Similar questions