“Como converter C para Python” Respostas de código

Como converter C para Python

#include<stdio.h>
int main()
{
    double b1,h1,b2,h2,a1,a2;
    scanf("%lf %lf %lf %lf",&b1,&h1,&b2,&h2);
    a1=(b1*h1)/2;
    a2=(b2*h2)/2;
    if(a1>a2)
        printf("%0.2lf",a1);
    else
        printf("%0.2lf",a2);
}
Brave Bug

Como converter C para Python

#include<stdio.h>
int main()
{
    double b1,h1,b2,h2,a1,a2;
    scanf("%lf %lf %lf %lf",&b1,&h1,&b2,&h2);
    a1=(b1*h1)/2;
    a2=(b2*h2)/2;
    if(a1>a2)
        printf("%0.2lf",a1);
    else
        printf("%0.2lf",a2);
}
Brave Bug

Respostas semelhantes a “Como converter C para Python”

Perguntas semelhantes a “Como converter C para Python”

Mais respostas relacionadas para “Como converter C para Python” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código