Presentation is loading. Please wait.

Presentation is loading. Please wait.

Variables i)Numeric Variable ii)String Variable

Similar presentations


Presentation on theme: "Variables i)Numeric Variable ii)String Variable"— Presentation transcript:

1 Variables i)Numeric Variable ii)String Variable
Those quantities ,whose values may change during execution of program are called “variables". There are 2 types of variables i)Numeric Variable It contains only numeric type of data, we can stores only numeric values X, a1,sum,total,average ii)String Variable It contains string type of data, string values must be enclosed in double quote and variable with $ sign. Student_Name$, Nationality$,n$ etc.

2 Greater then & Equals to
2)Relational Operator Use for Comparison or make condition such as Operation Operator Example Equals to = a=5 Greater then > a>5 Less then < a<5 Greater then & Equals to >= a>=5 Less then & Equals to <= a<=5 Not Equals to <> a<>5

3 Commands: This instruction or reserve word use in direct mode so that is called command.
AUTO ( This command is use to generate line number in automatic.) RENUM ( This command is use to Regenerate line number in order.) LIST ( This command is use to Display program list on the screen. ) EDIT ( This command is use to editing in specific line number of program.) SAVE ( This command is use to save file in disk.) NEW ( This command is use to clear program from memory.) LOAD (This command is use to load program from disk into memory) Kill ( This command is use to remove file form disk.) Delete (This command is use to delete program lines from memory.) Run ( This command is use to run or execute program.)

4 Practical #14 Prepare Basic program to calculate area of rectangle, using INPUT , LET ,REM, PRINT and END statements. Area = Length * Width Prepare Basic program to calculate Current ,using INPUT , LET ,REM, PRINT and END statements. I = V/R


Download ppt "Variables i)Numeric Variable ii)String Variable"

Similar presentations


Ads by Google