for count= 1 to 50
display count
End for
mobmgg 0 Newbie Poster
Recommended Answers
Jump to PostThe condition in the while loop will be the same as the for loop, namely the count is less than 51. Then just display the current count, and then increment the count variable by one.
This snippet (which I wrote in c++) displays what I just said,
Jump to Postfor count= 1 to 50
display count
End forint count = 1; while count < 51{ display count; count = count + 1; }
All 5 Replies
Grn Xtrm 84 Posting Pro in Training
BestJewSinceJC 700 Posting Maven
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
BestJewSinceJC 700 Posting Maven
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.