Compile Error
foo.c:1:5: error: expected expression before 'int' 1 | b = int(input("Enter the base: ")) | ^~~
Code
b = int(input("Enter the base: "))
h = int(input("Enter the height: "))
otivuj = int(input("Enter the otivuj: 4"))
if otivuj**2 == (b**2 + h**2):
perimiter = b+h+otivuj
print(perimiter)
else:
print("-1")
Information
- Submit By
- Type
- Submission
- Problem
- P1027 Right triangle
- Contest
- Brain booster #2
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2024-03-06 15:11:05
- Judged At
- 2024-11-11 03:41:43
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 0 Bytes