Untitled

 avatar
unknown
c_cpp
2 years ago
595 B
4
Indexable
#include <iostream>

using namespace std;

int main()
{
    int pages = 1;
    int paper = 0;
    
    while(!(pages <= paper)) {
        cout << "Укажите количество доступной бумаги:";
        cin >> paper;
        
        cout << "Укажите, сколько нужно напечатать:";
        cin >> pages;
    }
    
    for (int printed = 0; printed < pages; printed++ ) // начало цикла
        cout << "Напечатано страниц: " << printed << endl; 
    
    cout << "Печать завершена.."; 

    return 0;
}
Editor is loading...