


fashizzlepop wrote:No. Microscopic, if even existent, will to learn. And "immaturity?" more like a complete dick, disrespectful, and dillusional with an absence of ANY common sense. Not to mention the attitude that he even aimed at YOU sanddbox. I don't see why he hasn't been completely flamed up and out his ass.





#include <stdio.h>
#include <stdlib.h>
float calculator(float number1, float number2, char teken)
{
switch(teken)
{
case '-':
return number1-number2;
break;
case '+':
return number1+number2;
break;
case '*':
return number1*number2;
break;
case '/':
return number1/number2;
default:
printf("operator not recognised");
}
}
int main ()
{
float number1;
float number2;
char teken;
printf("Welcome to my calculator :D");
while(1)
{
printf("\nplease enter the first number(0 to exit): ");
scanf("%f",&number1);
if(number1==0)break;
printf("\nplease enter the operator: ");
scanf("%s",&teken);
printf("\nplease enter the second number: ");
scanf("%f",&number2);
printf("\nThe result is: %f",calculator(number1,number2,teken));
}
}


303132333435363738390a scanf("\n%s",&teken);

fashizzlepop wrote:No. Microscopic, if even existent, will to learn. And "immaturity?" more like a complete dick, disrespectful, and dillusional with an absence of ANY common sense. Not to mention the attitude that he even aimed at YOU sanddbox. I don't see why he hasn't been completely flamed up and out his ass.

AgentDerp wrote:fashizzlepop wrote:No. Microscopic, if even existent, will to learn. And "immaturity?" more like a complete dick, disrespectful, and dillusional with an absence of ANY common sense. Not to mention the attitude that he even aimed at YOU sanddbox. I don't see why he hasn't been completely flamed up and out his ass.
You get a cookie AND a gold star for describing me perfectly with every single detail.


Users browsing this forum: No registered users and 0 guests