Operator

Symbolic structure, expression

x=y+z

x>y

Arithmetical, logical , shift

types

1. Arithmetical +, – *, /, \,^,mod

2. Relational Opeartor <, >,<=,>=,<>

3. Logical Operator and, or, not

4. Assignment Operator =

5. Pattern matching Operator like, eqv, is

Input output statement

1. Output Operation

print statement

a. Message

print “Welcome”

b. Variable value

let roll=10

let marks=456

print roll,marks

c. Message + value

Print “Roll No=”,roll

d. Small level logical or arithmetical calcn

let x=5

let y=10

print x+y,x>y

2. Input Operation

input Statement

Print “Enter the name:”

input ch$

print ch$

Input “Enter the name”, ch$

F5 button

Q: WAP that accept two numbers find the sum and multiplication of numbers?

cls

Print “Enter two numbers”

input x,y 10 3

print x+y, x*y

Q WAP that accept two numbers swap the numbers?

Input “Enter first number:”,n1

Input “Enter 2nd number:”,n2

z=x

x=y

y=z

print x,y

or

x=x+y

y=x-y

x=x-y

print x,y

Q: WAP that accept radius of circle find out area and perimeter?

Q: WAP that accept temp. in centigrade convert into Fahrenheit?