Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream> // cout
- #include <cstdlib> // atoi
- void fibonacci(int max);
- int main(int argc, char **argv)
- {
- if (argc < 2)
- {
- std::cout << "You must specify the"
- << " fibonacci numbers to generate.\n";
- return 1;
- }
- int size = std::atoi(argv[1]);
- fibonacci(size);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement