1234567891011121314151617
#include "stdafx.h" #include <iostream> #include <cstdint> int main(){ std::cout << "Enter a Number ."; int n; std::cin >> n; int m; for (m = n-1; m < n && m>n-1000 ; m = m-1); if (n % m == 0){ std::cout << m; } }
for (m = n-1; m < n && m>n-1000 ; m = m-1);
if (n % m == 0)