Quick actions

cmd+k|ctrl+k

Navigation

Languages

Белоусов АТ-201 ПР3 (часть 2)

Snippet info

Language

Cpp

Visibility

public

Author

bilousov10a

Created

2020-10-18T18:06:06Z

Updated

2020-11-11T10:15:42Z

#include <iostream>
#include <cmath>

using namespace std;
int main()
{
    int a ;
   
    cout << "Введите целое число копеек (число от 1 до 99) : "; cin >> a;
    if (a >= 11 && a <=19)
            {
                cout << a << " копеек." << endl;
            }
    else if ((a % 10 == 4) || (a % 10 == 2) || (a % 10 == 3))
           cout << a << " копейки." << endl;
    
    else if (a % 10 == 1)
           cout << a << " копейка." << endl;
   
    else 
    cout << a << " копеек." << endl;
    

    
       
       

        
        
       
       return 0;
    
    
        
    
}

INFO