Hi all,

I would like to make a for loop in which should do the following:

To print the string n twenty times then the string s only one time. Then leave a gap and continue this until the n reaches n599 and s goes to s30.

n0
n1
n2
...
n19
s1

n20
n21
...
n39
s2

....

Any suggestions would be appreciated,

Thanks very much in advance,

Nicholas

Recommended Answers

All 3 Replies

Suggestion 1: use a for loop
Suggestion 2: learn to program

How far have you got with this? Did you even try anything?

Thanks very much for your replies and your support.

I have done it. (I guess I learned how to program)

Nicholas

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.