code1
PPA description
#include <stdio.h>
#include <stdlib.h>
int main()
{
float n1,n2,res;
char ope;
for(;;){
printf("\n_________________________________________");
printf("\nplease enter the first number:");
scanf("%f",&n1);
printf("\nplease enter the second number:");
scanf("%f",&n2);
printf("\n\t+\t-\t*\t/");
printf("\n \t please select on e of the operand: ");
ope=getch();
switch (ope){
case '+':
printf("%f+%f=%f",n1,n2,n1+n2);
break;
case '-':
printf("%f-%f=%f",n1,n2,n1-n2);
break;
case '*':
printf("%f*%f=%f",n1,n2,n1*n2);
break;
case '/':
printf("%f/%f=%f",n1,n2,n1/n2);
break;
default:
printf("***************************");
printf("\n\t\t\tyou selected wrong operand");
printf("***************************");
}
}
return 0;
}
Adding this PPA to your system
This PPA does not contain any packages yet. Find more information about how to upload packages in the PPA help page.
PPA statistics
- Activity
- 0 updates added during the past month.