Quick actions

cmd+k|ctrl+k

Navigation

Languages

task 69b

Snippet info

Language

Cpp

Visibility

public

Author

niktyutenko

Created

2018-10-14T16:15:10Z

Updated

2018-10-14T18:13:22Z

#include <iostream> 
#include <cmath>
using namespace std;
 
int main()
{
    int n,a;
    cin >> n;
    cin >> a;
    cout << "Сумма цифр числа 4 " << n << "8";
    if ((n % 10 + n / 10) % 3 != 0)
        cout << "не ";
    cout << "Кратна 3" << endl;
    cout << "Сумма цифр числа 7" << n << "14";
    if ((n % 10 + n / 10) % a != 0)
        cout << "не ";
    cout << "Кратна " << a;
    return 0;
}
INFO