Computer Science, asked by Anonymous, 1 year ago

what is the function of - 1. FOR, 2. ELSE, 3.IF 4. GOTO in Qbasic (computer), class 8th

Answers

Answered by NinjaBhaskar
4
goto is a function
for is a loop
else and if are keywords

Anonymous: then what functions if and else play in making a progaramm
Anonymous: for example cls is also a keyword and it helps to clear the screen, rem helps to give a remarks then how if and the helps????
Anonymous: ok
Anonymous: tnks
Answered by Gulamkhaiber1
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:

Anonymous: thnks
Gulamkhaiber1: Welcome
Similar questions