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-05 2:55


#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;}


FV style is the only true style.

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