+ 1

Please help I can't figure out how to do a practice in c#

You are an elementary school teacher and explaining multiplication to students. You are going to use multiplication by 3 as your example. The program you are given takes N number as input. Write a program to output all numbers from 1 to N, replacing all numbers that are multiples of 3 by "*". Sample Input 7 Sample Output 12*45*7 https://code.sololearn.com/cK8ZU81KbVGI/?ref=app

19th Aug 2021, 1:38 AM
dark Apprentice
9 Answers
+ 2
Using "number +1" instead of "number" as the upper limit should take care of that.
19th Aug 2021, 1:52 AM
Simon Sauter
Simon Sauter - avatar
+ 2
Thank you I did that and it worked 😊😊😊
19th Aug 2021, 1:57 AM
dark Apprentice
+ 1
Your code works for me. Although there seems to be an issue with sololearn right now where you may have to try running it multiple times because sometimes there is no output.
19th Aug 2021, 1:46 AM
Simon Sauter
Simon Sauter - avatar
+ 1
It says 12*45*7
19th Aug 2021, 1:48 AM
dark Apprentice
+ 1
That's what it's supposed to say, isn't it?
19th Aug 2021, 1:49 AM
Simon Sauter
Simon Sauter - avatar
+ 1
Yes I was asking if that is what it said
19th Aug 2021, 1:50 AM
dark Apprentice
+ 1
No the "7" is missing.
19th Aug 2021, 1:51 AM
Simon Sauter
Simon Sauter - avatar
+ 1
OK
19th Aug 2021, 1:52 AM
dark Apprentice
+ 1
Ty anyway
19th Aug 2021, 1:52 AM
dark Apprentice