0% found this document useful (0 votes)
7 views1 page

Conditional Statements Assignments

Uploaded by

redmilaptop0836
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Conditional Statements Assignments

Uploaded by

redmilaptop0836
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Write a Program along with the output in Google colab and share file over the mail:-

[email protected]

1.Write a program that checks if a number is even or odd.

2.Write a program that assigns grades based on marks:

Marks >= 90: Grade A


Marks >= 80: Grade B
Marks >= 70: Grade C
Marks < 70: Fail

3.Write a program to check if a number is divisible by both 3 and 5.

4.Write a program to determine if a triangle is valid based on its angles. A triangle is valid if the
sum of its angles equals 180°.

5.Write a program to check if a number is positive, negative, or zero.

6.Write a program to check if a number is greater than 10.

7.Write a simple calculator program that performs addition, subtraction, multiplication, or


division.

You might also like