/*Hey im inexperienced but learning. Can any of you help me with this? Im sure theres shittons of things wrong. I included tons of shit because i got bored*/
#include "stdio.h"
#include <stdlib.h>
#include "math.h"
extern float n1;
extern float n2;
extern float n3;
extern char operand;
void scan(n1,n2,n3,operand)
{
printf ("whatchu doin cuz");
scanf ("%s",&operand);
printf ("ait i gotchu but imma need a number./n");
scanf ("%s",&n1);
printf ("next one nigga cmon./n");
scanf ("%s",&n2);
}
/*what the cuck */
/**/
int main(n1,n2,n3,operand)
{
scan();
if (operand = '+');
else
return 0;
n3 = n2 + n1;
printf ("%f",n3);
getchar();
}
KILL YOURSELF
>>54617399
This
read a book and fuck off.
should be an array of chars
also why the fuck are you programming on your phone?
>>54617092
#include <stdio.h>
#include <stdlib.h>
#include "math.h"
float n1;
float n2;
float n3;
char operand;
void scan(float n1,float n2,float n3,char operand)
{
printf ("whatchu doin cuz");
scanf ("%c",&operand);
printf ("ait i gotchu but imma need a number.\n");
scanf ("%f",&n1);
printf ("next one nigga cmon.\n");
scanf ("%f",&n2);
}
/*what the cuck */
/**/
int main()
{
scan();
if (operand == '+')
else
return 0;
n3 = n2 + n1;
printf ("%f",n3);
getchar();
}
Here you go, OP. What the fug are you doing with your code? It's filled with errors.
>>54618399
Im just bored so i tried to learn c. Never did programming before, i was gonna make it divide or something later on idk. I started about a week ago but i havent had time to mess with it. Appreciate it.
>>54617092
bait
>>54618632
Nah its the truth. I ran out of shit to do so i decided to learn c