Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 2
Current context
Iām trying to initiate a method. What does it mean when an error says āKeyword void cannot be used in current contextā? Iāve tried other keywords like āintā, or āstatic intā, but it doesnāt accept those either. It doesnāt consider it a method :/
5 Respostas
+ 1
https://code.sololearn.com/cyJugWyg2M6l/?ref=app
its not finished
+ 1
You cannot declare a method in the main method.
https://code.sololearn.com/c9I9id6Qc1a9/?ref=app
0
Can you show use the code ?
0
i tried your code and i tried modifing mine but on both there are errors and warnings- stuff like num1 is declared but never used, and it STILL has a problem with the keyword void-even if its not in the main method
0
True.
Have a look at this.
https://code.sololearn.com/cpeQkO2vWefO