Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //IFF - Introdução à Programação
- //Slide página 15 - Exercício 2
- #include<stdio.h>
- #include<locale.h>
- int main(){
- setlocale(LC_ALL, "Portuguese");
- float b, h;
- printf("Entre com a base e a altura do retângulo respectivamente: ");
- scanf("%f %f",&b,&h);
- printf("A área do retângulo é: %.2f", b*h);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment