Computer Science, asked by sonuspissay, 4 months ago

how to write a program along with the algorithms to check if he/she is a senior citizen in qbasic

Answers

Answered by dreamrob
0

Program:

Dim age As Integer

Cls  

Input "Enter the age of the person : ", age  

If age >= 60 Then

   Print "Senior citizen "

Else

   Print "Not a senior citizen"

End If

End

Output 1:

Enter the age of the person : 85

Senior citizen

Output 2:

Enter the age of the person : 46

Not a senior citizen

Similar questions