0
C# course
What is the logic behind C# course "Conditions and loops" code exam? I don't understand why input 7 outputs 3 numbers.
1 Answer
+ 9
The question was to take the integer input from the user and using for loop you have to increment the range of numbers till the number entered
Also the numbers divisible by 3 should be instead printed ("*")
-> if(number % 3 == 0)
The input :- 7 is a sample Input
You have to write your code in such a way it passes all other input conditions
hope this hint helps you!
also this same question was asked by other people also , if you are unable to solve by yourself then refer the belowđđ» else Try to solve it by the help of the given hints
https://www.sololearn.com/Discuss/3073577/?ref=app
https://www.sololearn.com/Discuss/3072334/?ref=app