+ 1
Hi i need help
const int dim = 10; int n = 0; cout << "5 Stellige Nummer: "; cin >> n; if (n >= 10000 && n <= 99999) { for(int i=1; i<=5; i++) { int j = n%dim; // What makes it ? n = n/dim; // and it ? cout << i << "-e Teil: " << j << endl; } } else { cout << "Nummer soll 5Stellig sein!" << endl; } system("pause");
1 Respuesta