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:20

>>16
My roxterm defaults to 80x24 and I'm quite happy not maximising it, thank you very much.

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