0

I need a quick help pls

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sololearn { class Program { static void Main(string[] args) { int friend = Convert.ToInt32(Console.ReadLine()); friend *= 9; Console.Write(friend); } } } It's the candle challenge

3rd Apr 2024, 10:08 AM
Lennart Lang
Lennart Lang - avatar
7 Answers
+ 2
Read the task carefully. Each friend needs 9 candles, plus you also need an extra 9 for yourself.
3rd Apr 2024, 10:27 AM
Tibor Santa
Tibor Santa - avatar
+ 1
I already got it, I forgot to delete the question
3rd Apr 2024, 10:28 AM
Lennart Lang
Lennart Lang - avatar
+ 1
Try a for loop that executes 3 times.
3rd Apr 2024, 10:41 AM
Tibor Santa
Tibor Santa - avatar
0
I don't get it how it could work
3rd Apr 2024, 10:08 AM
Lennart Lang
Lennart Lang - avatar
0
Btw I got another question
3rd Apr 2024, 10:36 AM
Lennart Lang
Lennart Lang - avatar
0
Idk how to do it: as an example if you type as integer 3 a word gets repeated 3 times, how to code that
3rd Apr 2024, 10:37 AM
Lennart Lang
Lennart Lang - avatar
0
I forgot how to do loop + I got no hearts left so I can't enter any lessons
3rd Apr 2024, 10:47 AM
Lennart Lang
Lennart Lang - avatar