Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

am i doing it right?

Name: Anonymous 2010-04-04 19:00

#include <stdio.h>
#include <stdlib.h>
int
main (void)
{
  int x, y;
  fputs ("1st int: ", stdout);
  fscanf (stdin, "%d", &x);
  fputs ("2nd int: ", stdout);
  fscanf (stdin, "%d", &y);
  fprintf (stdout, "sum = %d\n", x + y);
  return EXIT_SUCCESS;
}

Name: Anonymous 2010-04-04 21:01

>>15
You're okay by me. Just mind your code does not go past the 80th column when viewed with real tabs, or gramps will have to kick your ass. I reckon you can even make your fancy editor mind it for you.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List