functions

Oct 22, 2012 at 9:05am
Dear All!
Excuse me, could anyone give me a hint how to draw a line using functions and get the next:

the line consists of a b, like:
aaabbb

how do I get that a is the percent of the whole line (a places +b places)?
Many thanks!
Oct 22, 2012 at 10:34am
It is totally unclear what you want. What do you mean by saying "get the next"?
What do you mean by saying "the percent of the whole line"?
Oct 25, 2012 at 7:49pm
Hallo!
I need to write a line consisting of :

bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb


so

a certain procent of the letters (in the beginning) shoudl be a
like

aaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

now I have to wirte:
10% is a
20% is a etc.
Oct 25, 2012 at 8:43pm
You mean how to select randomly a percent for letters a?
Oct 26, 2012 at 1:33pm
No, I have to imput percent, for example 12% or 40 % and it has to replace b wiht a. The rest of the line stayx b. ...:roll!
Oct 26, 2012 at 2:29pm
Ask a user to enter a non-negative value between 0 and 100 inclusively.
Oct 27, 2012 at 9:25pm
How can I get to another line from a loop writing strings?
Topic archived. No new replies allowed.