online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
import math alap = float(input("Alap: ")) szar = float(input("Szár hossza: ")) if alap > 0 and szar > 0 and szar > (alap/2): mag = szar**2 - (alap/2)**2 mag = math.sqrt(mag) ter = alap*mag/2 print("A háromszög alapja {}, 2 szára {}, magassága {:0.4f}".format(alap, szar, mag)) print("A háromszög területe: {:0.4f}".format(ter)) else: print("Nincs ilyen háromszög!")

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue