PFP191_-_FA_2023_-_PE_939.webp
H

PFP191_-_FA_2023_-_PE_939.webp

  • Media owner Havoc93
  • Ngày thêm
mark and the score will be 0.
Question 1: (2 marks)
The given Q1.py file already contains statements to enter data for the variables a, b, and c. You should write the statements to check a,b, and c whether are 03 sides of the triangle or not. If true then print "1",otherwise print "0".
Hints:
a, b, and c are the lengths of the three sides of the triangle if each value is less than the sum of the others (a<b+c, ba+c, c<a+b)
Notes:
- You can create new functions if you see it is necessary.
- Do not edit given statements in the main function.
Sample input and output:
-Input: a = 1, b = 2, c = 3
FUOVERFLW.COM
Output for marking:
OUTPUT:0
-Input: a = 4, b = 5, c = 6
Output for marking:
OUTPUT:
1
UOVERFLOW.C
Chưa có bình luận nào.

Thông tin

Category
PFP191
Thêm bởi
Havoc93
Ngày thêm
Lượt xem
1,442
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PFP191_-_FA_2023_-_PE_939.webp
File size
84.4 KB
Dimensions
1552px x 618px

Share this media

Back
Bên trên Bottom