+ 1
Print 12 and 13 table only 12*1 12*2and same for 13
Nested loops java
8 ответов
+ 3
Your main() method is invalid. A main() method should be specified as `static` method, and receives only one `String[]` as argument. 
After fixing that, you'd also have to initialise <a> and <b> locally in main() because your instance variables <a> and <b> cannot be accessed from a `static` method.
+ 1
Use static keyword in main function
+ 1
And write String args[] instead of declaration of variables
+ 1
Try...
public class Program
{
      
    public static  void main (String[] args)
    {
        for (int a=12;a<=13;a++)
        {
            for (int b=1;b<=2;b++) {
            System.out.println(a+"*"+ b +"="+a*b);
            }
        }
    }
}
0
Check this answer
0
Please always tag the language you're asking about.
https://code.sololearn.com/W3uiji9X28C1/?ref=app
0
Oky thank you everyone for helping me in this course



