Tuesday, 31 December 2019

Computer Studies For Class IX (Science) and X (Arts /General /Humanities Group) - Practical No.9

Go To Index

Practical No. 9: W.A.P. to find out the number of male and female out of 10 students. Where the inputted data is Name and Gender.


10 CLS
20 Let A=0
30 Let A=A+1
40 Input "Enter your Name",N$
50 Input "Enter your Gender",G$
60 If G$="M" then M=M+1
70 If G$="F" then F=F+1
80 If A=10 then Go to Else go to 30
90 Print "Number of Male",M
100 Print "Number of Female",F
110 END
RUN

No comments:

Post a Comment