Computer Science, asked by vananabharti12345678, 5 months ago

what is the use of let and input statement?

Answers

Answered by helper147
0

Answer:

The LET statement can be used to assign a constant value to a variable name, a variable to a variable name, or the result of an expression to a variable name .

The INPUT statements provide the means of transferring data from external media to internal storage or from an internal file to internal storage.

Example:

INPUT : 1. Programmer allows the user to assign the value

LET : 1. Programmer assigns the value while writing the program.

INPUT : 2. Different values could be entered in different times of execution.

LET : 2. Values could not be changed during execution till they are changed from the source.

INPUT : 3. INPUT "Enter 1st Number : "; a

INPUT "Enter 2nd Number : "; b

c=a+b

Print "Result : "; c

LET :3. Let a = 12

Let b = 10

c=a+b

Print c

Similar questions