#include
using namespace std;
int main() {
setlocale(LC_ALL, "Russian");
long long int N;
short int MinDig = 10;
cout << "N = "; <br> cin >> N;
while (N != 0) {
if (N % 10 < MinDig) MinDig = N % 10;
N /= 10;
}
cout << "Наименьшая цифра = " << MinDig << endl;<br> system("pause");
}