int a = 1234; int num1; num1=a%10; serial.println(num1);

Share