does anybody know what should i do to solve the problems in this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

does anybody know what should i do to solve the problems in this code?

console.setCursorPosition(6,6); for(int i=1; i<=5; j++) { for(int j=1; j<=5; j++) { console.writeline("{0,5}", i*j); console.writeline(); }

24th Nov 2023, 10:21 AM
Nessa Cheraghi
Nessa Cheraghi - avatar
7 Answers
+ 5
Check your capitals. For example: is it meant to be writeline or WriteLine?
24th Nov 2023, 2:06 PM
Ausgrindtube
Ausgrindtube - avatar
+ 3
Pay attention to your letters. C# is case-sensitive; also there is a problem in your loop: Console.SetCursorPosition(6,6); for(int i=1; i<=5; i++) { for(int j=1; j<=5; j++) { Console.WriteLine("{0,5}", i*j); } }
3rd Dec 2023, 1:35 PM
🇮🇱 Radin Masiha 🇮🇱
🇮🇱 Radin Masiha 🇮🇱 - avatar
+ 2
Also, next time be sure to tell us what the code is supposed to be doing. We can't assume what the intended behavior is besdes just helping with what might by syntax errors.
24th Nov 2023, 3:04 PM
Justice
Justice - avatar
+ 1
‌ ‌ please don't spam threads. If you can help, then that's more than welcome.
24th Nov 2023, 7:01 PM
Ausgrindtube
Ausgrindtube - avatar
0
سلام
24th Nov 2023, 6:37 PM
‌ ‌
0
hi
24th Nov 2023, 6:38 PM
‌ ‌
0
This appears to be javascript, if so, you will need to use camelCase -- also, console.writeline is not a function console.log() is. if you use a modern web browser, on a PC, you can press [F12] and open the Javascript Console, where you can test your code and learn more about javascript interactivity, for example: ``` [Javascript Console]: > console.writeline('a') VM72:1 Uncaught TypeError: console.writeline is not a function at <anonymous>:1:9 (anonymous) @ VM72:1 > console.log('a') a VM127:1 undefined ```
25th Nov 2023, 1:41 PM
BOOTLOOPS
BOOTLOOPS - avatar