Computer Science, asked by Narain7534, 1 year ago

for staement is always used along with which statement

Answers

Answered by ashblend17
0

First thing, for is not a statement. Its a keyword used to activate for loop.

The structure of a for loop is:

for(initializing value;test expression or condition;updation)

{

body of for loop

}

The body can contain any statement.

You cannot declare a variable in any loop.


VedaantArya: Depends on the language :3
ashblend17: yeah
ashblend17: its in java
VedaantArya: You shouldn't assume that. Users of PHP, VB and Python are also on this site.
ashblend17: :-|
Similar questions