Presentation on theme: "Variables i)Numeric Variable ii)String Variable"— Presentation transcript:
1Variables i)Numeric Variable ii)String Variable Those quantities ,whose values may change during execution of program are called “variables". There are 2 types of variablesi)Numeric VariableIt contains only numeric type of data, we can stores only numeric valuesX, a1,sum,total,averageii)String VariableIt contains string type of data, string values must be enclosed in double quote and variable with $ sign.Student_Name$, Nationality$,n$ etc.
2Greater then & Equals to 2)Relational Operator Use for Comparison or make condition such asOperationOperatorExampleEquals to=a=5Greater then>a>5Less then<a<5Greater then & Equals to>=a>=5Less then & Equals to<=a<=5Not Equals to<>a<>5
3Commands: 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.)
4Practical #14Prepare Basic program to calculate area of rectangle, using INPUT , LET ,REM, PRINT and END statements.Area = Length * WidthPrepare Basic program to calculate Current ,using INPUT , LET ,REM, PRINT and END statements.I = V/R