0

You are an elementary school teacher and explaining multiplication to students. You are going to use multiplication by 3 as you

I solved the above problem but sololearn still return wrong answer: using System; using System.Collections.Generic; namespace SoloLearn { class Program { static void Main(string[] args) { string replace=""; Console.WriteLine("Enter a number:"); int number = Convert.ToInt32(Console.ReadLine()); //your code goes here for(int index=1; index<number; index++){ if(index %3==0){ replace =replace+"*"; } else { replace =replace+index; } } Console.WriteLine(replace +number); } } }

23rd Dec 2021, 4:24 PM
JIBRILLA ABDUL-RAZAK
JIBRILLA ABDUL-RAZAK - avatar
2 Réponses
0
Zak34 I.T. world Attach the code then, so that we can see your code and see if there are any errors or you have missed anything.
23rd Dec 2021, 4:50 PM
NEZ
NEZ - avatar
0
I just did please
23rd Dec 2021, 8:17 PM
JIBRILLA ABDUL-RAZAK
JIBRILLA ABDUL-RAZAK - avatar