What is the solution is the multiple of 3? I am attempts to the question 5 times. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the solution is the multiple of 3? I am attempts to the question 5 times.

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

17th Feb 2021, 7:08 AM
Prashant Kumar Banjare
Prashant Kumar Banjare - avatar
2 Answers
17th Feb 2021, 8:27 AM
sneeze
sneeze - avatar
+ 2
Please show your attempt before asking us to just give you the solution. If you just want the solution please utilize the search bar : https://code.sololearn.com/c7wmwD8OZpIB/?ref=app
17th Feb 2021, 3:44 PM
Elijah Brown
Elijah Brown - avatar