Java Programming Exercise with Solution : Get two number and show multiply using fuction

Exercise:

Get two numbers from user, multiply those numbers using function and print out until user input 0 0.


Example:
Put two numbers: 3 5
Result: 15
Put two numbers: 2 3
Result: 6
Put two numbers: 5 9
Result: 45
Put two numbers: 0 0
You did it 3 times.

Solution:

import java.util.Scanner;

public class YaSolution {

 static int number = 0;

 static void mul(int a, int b) {
  System.out.println("Result: " + a * b);
 }

 public static void main(String[] args) {
  // TODO Auto-generated method stub
  int a, b;
  Scanner myScanner = new Scanner(System.in);
  while (true) {
   System.out.print("Put two numbers: ");
   a = myScanner.nextInt();
   b = myScanner.nextInt();
   if (a == 0 && b == 0)
    break;
   number++;
   mul(a, b);
  }
  System.out.println("You did it " + number + " times.");
 }

}

Comment your idea or code below. :)