#include <LiquidCrystal.h>
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7); // Setup lcd
int i = 1;
int num = 12; // table for the number
void setup() {
// put your setup code here, to run once:
lcd.begin(16, 2); // Setup columns and rows of the LCD
}
// Prints table of 12
void loop() {
// put your main code here, to run repeatedly:
// Print num * i = value
lcd.print(String(num) + "*" + String(i) + "=" + String(num * i));
delay(500); // delay
lcd.clear(); // Clear LCD
lcd.setCursor(0, 0); // Reset LCD cursor
i++; // Increment LCD value
delay(100); // delay
}