[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/*Hey im inexperienced but learning. Can any of you help me with
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 9
Thread images: 1
File: Screenshot_2016-05-18-11-10-32.png (156 KB, 720x1280) Image search: [Google]
Screenshot_2016-05-18-11-10-32.png
156 KB, 720x1280
/*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
Thread replies: 9
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.