Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void squares (void);
- int main ()
- {
- int n;
- squares ();
- return 0;
- printf ("Please enter a variable for n\n");
- fflush (stdout);
- scanf ("%d", &n);
- for (n=1; squares<=n; n++) {
- printf ("%d\n",n);
- }
- }
- void squares (void)
- {
- int i;
- for (i=1; i<=10; i++) {
- printf ("The square of %i is %i.\n", i, i*i);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement