what is the function of - 1. FOR, 2. ELSE, 3.IF 4. GOTO in Qbasic (computer), class 8th
Answers
Answered by
4
goto is a function
for is a loop
else and if are keywords
for is a loop
else and if are keywords
Anonymous:
then what functions if and else play in making a progaramm
Answered by
2
For, else, if, goto all are function
For(intilization ;limitations ;increment/decrement)
ie,
For (i=0;iIF & ELSE are conditional statements
Or you can say that cheeking true or false for example if you want to cheek number is odd or even then you can use if else like
If(n/2==0)
Printf("number is even") ;
else
Printf("number is odd") ;
GOTO statement is also known as jumping statement.. For example
If("n/2==0)
goto even:
else
goto odd:
For(intilization ;limitations ;increment/decrement)
ie,
For (i=0;iIF & ELSE are conditional statements
Or you can say that cheeking true or false for example if you want to cheek number is odd or even then you can use if else like
If(n/2==0)
Printf("number is even") ;
else
Printf("number is odd") ;
GOTO statement is also known as jumping statement.. For example
If("n/2==0)
goto even:
else
goto odd:
Similar questions
English,
8 months ago
Science,
8 months ago
Math,
8 months ago
Math,
1 year ago
Computer Science,
1 year ago