Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
About Repeat.. until and While.. do
Hi, am new here.. anyway, I was hoping somebody could give me information about programming using repeat and while..
The problem is :
using while .. do
5 4 3
5 4 3 2
5 4 3 2 1
and using repeat until
1 2 3 4 5
1 2 3 4
1 2 3
I've been puzzling over this for a while and all my efforts have given me an output of:
for the 'while' and similar output for the 'repeat'
Is the process similar to the 'for'?
I've been able to do the required output using FOR command, but I cannot seem to apply it to REPEAT and WHILE.
Your help would be greatly appreciated.