Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <clocale>
- using namespace std;
- int main() {
- int Price = 14;
- setlocale( LC_ALL, "Russian" );
- cout << "Эта программа выведет таблицу стоимости порций сыра в рублях" << "\n";
- for (int i = 1; i < 21; i++) {
- cout << Price << " ";
- Price += 14;
- if ( i % 5 == 0 )
- cout << "\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement