-1
#include <stdio.h>
int main (){
float n1=0;
char operacao;
float n2=0;
printf("*CALCULADORA\n");
printf("n1:");
scanf("%f", & n1);
printf("operacao:");
scanf("%c", operacao);
printf("n2:");
scanf("%f", n2);
// operacao de adicao
switch(operacao){
case '+':
printf("R:%f+%f=%f\n", n1, n2, n1+n2);
break;
//operacao de subtracao
switch(operacao){
case '-':
printf("R:%f-%f=%f\n", n1, n2, n1-n2);
break;
}//operacao de multiplicao
switch(operacao){
case '*':
printf("R:%f*%f=%f\n", n1, n2, n1*n2);
break;
}//operacao de divisão
case '/':
if(n2==0){
printf("ne");
}else{
printf("R:%f/%f=%f\n", n1, n2, n1/n2);
}
break;
default:
printf("operacao inv");
return 0;
}
}
'cause it’s static, 'cause it didn’t show up N2. Help me finish, please