How to show the value via LCD ?

Hello everyone I am trying to show the value that being calculated in the Arduino, via LCD It is the code that i don't know how to write.

I am using this type of LCD

i am trying to do the calculation like 2 + 2 2 + 2 = 4 "2+2" use if statement to calculate? and the number "4" how can the LCD just show the number of 4?

Thanks a lot, it is a little puzzle for my project, please help

Have you looked here:

Have you looked here:

but i still don’t know…which one can use…
i am really really new at this :-[

which one can use

Which one what?

There are 9 examples provided on that page. Surely at least one of them contains a clue how to print some text on the LCD.

If you didn't have the LCD, how would you know that the Arduino was working correctly? How do you know what numbers to add?

I understand what you're wanting (I think) If you modify the 'hello world' program, you should be able to do what you want. Now, I'm not sure how to write it but in the loop you need to add what you want to add and then print the ANSWER to the LCD. (instead of hello world) Try reading this page from the Sheep dog guide -- I'm trying to figure out something similar.

Is this close to what you’re looking for?

Displays value of 2+3 to the LCD display

#include <LiquidCrystal.h>  // include the library

LiquidCrystal lcd(7,8,9,10,11,12);    // initialize the library with the
                                      // pins you are using
int a=2;
int b=3;
int ans = a+b;
int val;
void setup() 
  lcd.begin(20, 4);   // set up the LCD's number of rows and columns: 

void loop()
  lcd.print("2 + 3 = ");
  val = (a + b); 
  delay (2000);