Professional Documents
Culture Documents
AI-LabPrograms (1 To 5)
AI-LabPrograms (1 To 5)
AI-LabPrograms (1 To 5)
Code:
Output:
Program 2
Objective:Use input() and print()
Task: Accept name and age from the user and display them
Code:
Output:
Program 3
Objective: Use arithmetic operators
Task: To accept the side of a square and display the area of the square
Code:
Output:
Program 4
Objective: Use of arithmetic operators
Task: To accept the radius of a circle and calculate its area and perimeter
Code:
Output:
Program 5
Objective: Use of arithmetic operators
Task: To accept two numbers and display their sum and product
Code:
Output: