[ create a new paste ] login | about

Link: http://codepad.org/m72Uv1i9    [ raw code | output | fork ]

C, pasted on Aug 7:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>

int main(void)
{
    float areat,baset,alt;
    
    printf("CALCULAR EL ÁREA DE UN TERRENO\n\n");
    printf("Escriba la base del terreno\n");
    scanf("%f",&baset);
    
    printf("Escriba la altura del terreno\n");
    scanf("%f",&alt);
    
    areat=baset*alt;
    
    printf("El área del terreno es:%.f\n",areat);
    
    return 0;
}


Output:
1
2
3
4
5
CALCULAR EL ÁREA DE UN TERRENO

Escriba la base del terreno
Escriba la altura del terreno
El área del terreno es:-0


Create a new paste based on this one


Comments: