Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //IFF - Introdução à Programação
- //Slide página 15 - Exercício 1
- #include<stdio.h>
- #include <locale.h>
- int main(){
- setlocale(LC_ALL, "Portuguese");
- float num1, num2;
- printf("Entre com os dois números: ");
- scanf("%f %f", &num1, &num2);
- printf("A soma é: %.0f \nA subtração é: %.0f \nA multiplicação é: %.0f \nA divisão é: %.2f", num1+num2,num1-num2,num1*num2,num1/num2);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment