Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int a,b;
- char sinal;
- printf("Digite um numero:%d",a);
- scanf("%d",&a);
- printf("Digite outro numero:%d",b);
- scanf("%d",&b);
- printf("Escolha uma operação matematica:+ - * / %c",sinal);
- scanf("%d",&sinal);
- if (a+b){
- printf("A soma entre:%d\n",a+b);
- }
- else if (a-b){
- printf("A subtração entre:%d\n",a-b);
- }
- else if (a*b){
- printf("A multiplicação entre:%d\n",a*b);
- }
- else if (a/b);{
- printf("A divisão entre:%d\n",a/b);
- }
- if (a%b){
- printf("O resto dadivisão entre:%d\n",a%b);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement