Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void foo(int);
- ////////////////////////////////////////////////////
- int main() //
- {
- foo(7);
- foo(8);
- return 0;
- }
- /////////////////////////////////////////////////////
- void foo(int n1)
- {
- for(int i = 2; i < 10; i++)
- {
- printf("%d * %d = %d\n", n1, i, n1 * i);
- }
- printf(" - - - - - - - -\n");
- }
- // printf("foo(3, 7) = %d\n", foo(7) );
- /*
- #include <stdio.h>
- int n = 4;
- int foo(int, int);
- ////////////////////////////////////////////////////
- int main() //
- {
- printf("n = %d\n", n );
- printf("foo(3, 7) = %d\n", foo(1, 7) );
- return 0;
- }
- /////////////////////////////////////////////////////
- int foo(int n1, int n2)
- {
- int nRes = n1 + n2;
- return nRes;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement