0

Write a program that takes input from user in this pattern aabb aaaabbbb aaaaaaaabbbbbbbb. As power of two in c#

17th Jan 2018, 3:55 AM
Anonymous
2 Respuestas
+ 6
Hint: - Get user to give two characters to be printed repetitively. - Use Math.Pow in a loop to figure how many times a character was supposed to be printed (n), the base should be two, the exponent uses the loop iterator. - for each of the character user supplied, use Write to output the character (n) times - Use WriteLine to insert a new line before generating the next (n) Post the code if you have an issue after you tried it out, explaining the problem so people can understand and offer suggestions. Hth, cmiiw
17th Jan 2018, 5:16 AM
Ipang