Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- //да отпечатваме всички числа от 1 до 100
- //повтаряме: печатаме число
- //начало: 1
- //край: 100
- //промяна: +1
- for (int number = 1; number <= 100; number++)
- {
- //блок от код на for цикъл
- //повтарящите се действия
- cout << number << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment