answersLogoWhite

0

Platform dependent. Example for linux:

for i in 1 2 3; do

echo "i=$i"

done

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you use loop in C programming?

#include<stdio.h>


Is there any rule that if I use an If in a loop then i cant use that if in another loop?

If your question makes sense at all, and it is about programming, then the answer is no.


What are the features of batch file programming?

Batch file programming is dos based programming you have to use dos commands .It is very good to perform some repetitive task in computer programming is easy you should only know the dos commands.


In command prompt what does the if switch do?

There is not switch called "if". We generally use "if" statement in batch programming in DOS.


How can I create a knot for loop in my programming code?

To create a knot for loop in programming code, you can use a loop structure that repeats a block of code a specific number of times or until a certain condition is met. This loop allows you to iterate through a sequence of instructions multiple times. You can use keywords like "for" or "while" in languages like Python, Java, or C to implement a knot for loop.


Can you provide an example of how to use a loop variable in a programming language?

In programming, a loop variable is used to control the number of times a loop runs. For example, in Python, you can use a loop variable like "i" in a for loop to iterate over a list of numbers: python numbers 1, 2, 3, 4, 5 for i in numbers: print(i) In this code snippet, the loop variable "i" is used to iterate over each number in the list "numbers" and print it out.


Why is spooling necessary for batch programming?

advantage of spooling


What are you use of loops?

A loop is used in programming to repeat a set of commands in the program when a task is a repetitive one


What does LOOP stand for?

LOOP is a term used in programming to indicate a programming technique that repeatedly executes the same portion of code until a test condition becomes true.


What is he do loop?

A "do" loop is a construct in a programming language that lets you repeat instructions over and over, as long as a certain condition is true. The details vary, depending on the programming language.


Which loop is also called an exit-condition loop in C programming?

The do while loop is also called an exit condition loop in c, c++, and java.


What are the dos files?

Dos files are the files with the extension .bat which are used for programming in DOS. This is also called as batch file programming.