writre a algorithm print odd number 1 to 100
Answers
Answered by
0
In q basic the answer is
For a = 1 to 100 step 2
Print a
Next a
For a = 1 to 100 step 2
Print a
Next a
Answered by
1
step 1 : start the program
step 2: declare variable n in integer
step 3: for (n=0;n%2!=0;n++)
step4: if (n==100)
step5: break the if loop
step6: print n
step7: end the program
step 2: declare variable n in integer
step 3: for (n=0;n%2!=0;n++)
step4: if (n==100)
step5: break the if loop
step6: print n
step7: end the program
Similar questions