Calculate the area of the triangle
Write a program that receives the rule and height of the triangle and calculates its area
Triangle area = (rule * height) divided by 2
Write a program that receives the rule and height of the triangle and calculates its area
Triangle area = (rule * height) divided by 2
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
base =int(input("enter the base:")) height=int(input("enter the height:")) result=base*height result2=result/2 print(result2)
a = int(input("number1:")) y = int(input("number2:")) print((a * y) / 2)
ghaedeh = int(input("enetr your number:")) # A number of input for the rule ertefah = int(input("enter your number:")) # A number of entrances for height masahat = (ghaedeh * ertefah) / 2 # Triangle area print(f"masahat:{masahat}")
g=float(input('gaede:')) e=float(input('ertefa:')) print(int(g*e/2))
# Triangle area i=int(input("ghahede: ")) y=int(input("ertefah: ")) print((i*y)/2)
print("مساحت:",int(input("قاعده:"))*int(input("ارتفاع:"))/2)
h = float(input('hight: ')) b = float(input('base: ')) s = (b * h)/2 print(f'area of triangle is: {s}')
Submitting answers is currently unavailable.
Scissors Paper Play: 1- The user chooses one between paper or scissors. 2- Select the system by random. 3- With the choice of user and system, the result is displayed and the user's rating is calculated 4- ... ...
Write a function that receives a text and returns the first 100 characters with "..." if the text is longer than 100 characters. Otherwise it will restore the whole text unchanged.
Write a function that receives some and checks whether the amount received is the email. If the email was True, otherwise the False return the email should contain @ before @ should be a phrase as a work name ...
Write a program that receives the user's age from the input and checks that if the user was younger than 1, it would be a throw/raise error, otherwise print a welcome message
Write a program that receives the square area from the user and prints the size of each side in the output
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.