VeeraPrg(Vp) is a simple programming language created by Veeraragavan.R.A which is running on Qbasic. There are different syntax,memory,keywords,ect. Each version has different keywords and different amount of keywords. In future it will run using python.
There are keywords to do arithmetic operations only. there are:
- ADD : for addition
- SUB : for subtraction
- MUL : for multiplication
- DIV : for division
command,value1,value2 |
---|
The limit of value is 20 digits including a decimal point and with a plus or minus symbol.
There are 4 arrays for storing data and the limit will be asked to you. The arrays are prg(), prg1(), prg2() and prgo(). The given table will show you the format.
prg() | prg1() | prg2() | prgo() | |
---|---|---|---|---|
0 | /command/ | /value1/ | /value2/ | /ans/ |
1 | /command/ | /value1/ | /value2/ | /ans/ |
2 | /command/ | /value1/ | /value2/ | /ans/ |
M | M | M | M | M |
n | /command/ | /value1/ | /value2/ | /ans/ |
Where,
- /command/ : keywords
- /value1/ : values
- /value2/ : values
- /ans/ : output
-
ADD This commandis used to add two numbers.
eg) ADD,1,5
o/p) 6
-
SUB This commandis used to subtract two numbers.
eg) SUB,6,5
o/p) 1
-
MUL This commandis used to multiply two numbers.
eg) MUL,1,5
o/p) 5
-
DIV This commandis used to divide two numbers.
eg) ADD,10,5
o/p) 2
there are no error messages