Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // laskuri.cpp, counter, by Lauri Friberg 2018. Laskee numerot 0:sta 1000:n.
- // Counts numbers from 0 to 1000.
- #include <iostream>
- using namespace std;
- int laskuri(); //protype
- main() //main function
- {
- laskuri();
- return 0;
- }
- int laskuri() //function definition
- {
- int i;
- for (i=0; i<=1000; ++i)
- {
- cout << i << " ";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment