1) WAP find greater between two numbers.
Clear
input"Enter A:” to a
input”Enter B:” to b
if a>b
?”A is greater”
else
?”B is Greater”
endif
endif
2) WAP to find Even or Odd number.
Clear
input"Enter Number:” to n
if n%2=0
?”Even Number”
else
?”Odd Number”
endif
endif
3) WAP to find Leap or Non-Leap year.
Clear
input"Enter Any Year:” to y
if y%4=0
?”Leap Year”
else
?”Non-Leap Year”
endif
endif
4) WAP to find profit or loss.
clear
input”Enter Sale Price” to sp
input”Enter Cost Price” to cp
if sp>cp
p=sp-cp
?”Profit of”,p
else
l=cp-sp
?”Loss of”,l
endif
endif
5) WAP to find the greatest among three numbers.
input”Enter A” to a
input”Enter B” to b
input”Enter C” to c
if a>b and a>c
?”A is greatest”
else
if b>c
?”B is greatest”
else
?”C is greatest”
endif
endif
endif
6) WAP to find the greatest among four numbers.
input”Enter A” to a
input”Enter B” to b
input”Enter C” to c
input”Enter D” to d
if a>b and a>c and a>d
?”A is greatest”
else
if b>c and b>d
?”B is greatest”
else
if c>d
?”C is greatest”
else
?”D is greatest”
endif
endif
endif
endif
7) WAP to find the result of the student.
Per 60-100
First Division
Per 45-60
Second Division
Per 33-45
Third Division
Else
Fail
clear
accept”Enter the Name ” to name
input”English - ” to eng
input”Math - ” to math
input”Science - ” to sc
input”Social Studies - ” to ss
tm=eng+math+sc+ss
per=(tm*100)/400
?”Name - ”,name
?”Total Marks - ”,tm
?”Percentage - ”,per
if per>=60 and per<=100
?”First Division”
else
if per>=45 and per<60
?”Second Division”
else
if per>=33 and per<45
?”Third Division”
else
?”Fail”
endif
endif
endif
endif
Clear
input"Enter A:” to a
input”Enter B:” to b
if a>b
?”A is greater”
else
?”B is Greater”
endif
endif
2) WAP to find Even or Odd number.
Clear
input"Enter Number:” to n
if n%2=0
?”Even Number”
else
?”Odd Number”
endif
endif
3) WAP to find Leap or Non-Leap year.
Clear
input"Enter Any Year:” to y
if y%4=0
?”Leap Year”
else
?”Non-Leap Year”
endif
endif
4) WAP to find profit or loss.
clear
input”Enter Sale Price” to sp
input”Enter Cost Price” to cp
if sp>cp
p=sp-cp
?”Profit of”,p
else
l=cp-sp
?”Loss of”,l
endif
endif
5) WAP to find the greatest among three numbers.
input”Enter A” to a
input”Enter B” to b
input”Enter C” to c
if a>b and a>c
?”A is greatest”
else
if b>c
?”B is greatest”
else
?”C is greatest”
endif
endif
endif
6) WAP to find the greatest among four numbers.
input”Enter A” to a
input”Enter B” to b
input”Enter C” to c
input”Enter D” to d
if a>b and a>c and a>d
?”A is greatest”
else
if b>c and b>d
?”B is greatest”
else
if c>d
?”C is greatest”
else
?”D is greatest”
endif
endif
endif
endif
7) WAP to find the result of the student.
Per 60-100
First Division
Per 45-60
Second Division
Per 33-45
Third Division
Else
Fail
clear
accept”Enter the Name ” to name
input”English - ” to eng
input”Math - ” to math
input”Science - ” to sc
input”Social Studies - ” to ss
tm=eng+math+sc+ss
per=(tm*100)/400
?”Name - ”,name
?”Total Marks - ”,tm
?”Percentage - ”,per
if per>=60 and per<=100
?”First Division”
else
if per>=45 and per<60
?”Second Division”
else
if per>=33 and per<45
?”Third Division”
else
?”Fail”
endif
endif
endif
endif