Computer Science, asked by brandonloyaltylopez7, 17 days ago

1. Construct defining diagrams for the following:

a. The program should accept the ages of two students and print the age difference between the two.
b. Write a program to print the larger or two numbers.

Attachments:

Answers

Answered by cheemtu
1

Here is the python program ↓

studentage1 = int(input("Age of Student 1: "))

studentage2 = int(input("Age of Student 2: "))

age_diff = studentage1 - studentage2

print("The age difference between the students are ", age_diff , "years")

maxage = max(studentage1 , studentage2)

print("Larger age: ", maxage)

Answered by Anonymous
0

here you answer mark me brilliant answer

Attachments:
Similar questions