Q1. Write a program to accept radius of circle and display it's area and circumference.
Q2. Write a program to find the average marks of five subjects. (Accept marks from user)
Q3. Write a program to find the area of right angle triangle. (Accept base and height from user)
Q4. Write a program to print the following pattern without loop.
*
* *
* * *
* * * *
Q5. Write a program to find the volume of sphere.(Accept radius from the user)
Q6. Find errors
- a = input(Enter your name)
- b = input("Enter any number")
Q7. Find errors:
a = input("Enter your name"
Print(Your name is, a)
Q8. Write the output of the following
a, b = 2, 6
a, b, b = a+b, 2, 3
print(a,b)
Q9. Write the output of the following.
a = 5
b = "Amit"
print(a + b)
Q10. Write the output of the following.
a =3
b =4
print(a + b%2 + a**2)
No comments:
Post a Comment