Computer Science, asked by rambabu371, 4 months ago

write a program to compare your age with your friend's age in Basic 256​

Answers

Answered by mohammedpvts786
0

why buildings are constructed with a wider basement

Answered by allysia
0

Language:

BASIC-256

Program:

input "Enter your age: ", a

input "Enter your friend's age: ",b

if a>b then  

print "You are older than your friend."

else

print "your friend is older than you."

endif

Output:

Enter your age: 45

Enter your friend's age: 56

your friend is older than you.

Explanation:

  • Line 1: takes input in a
  • Line 2: takes input in b
  • Line 3: checks conditions.
  • Lines further: runs statement as per condition.  

Attachments:
Similar questions