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(); }
7 Answers
+ 5
Check your capitals. For example: is it meant to be writeline or WriteLine?
+ 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);
}
}
+ 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.
+ 1
â â please don't spam threads. If you can help, then that's more than welcome.
0
ŰłÙۧÙ
0
hi
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
```