Skip to content

Instantly share code, notes, and snippets.

@javier-lopez
Created February 28, 2011 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javier-lopez/848298 to your computer and use it in GitHub Desktop.
Save javier-lopez/848298 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char const* argv[])
{
int num=0;
printf("Introduzca el num de elementos a sumar: ");
scanf("%d", &num);
fflush(stdout);
if (ferror(stdout))
exit(EXIT_FAILURE);
return EXIT_SUCCESS;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment