#include #include int main (){ setlocale(LC_ALL, "Russian"); double value = 100, del = 2, ost; int arr[10000]; int n = 0; for(int i = 0; i < 10000; i++) { arr[i] = (value / del - trunc(value / del)) * 10; del = del + 0.2; } for(int i = 0; i < 999; i++) { if(arr[0] == arr[i + 1]) { std::cout << "YES!" << std::endl; n++; } } std::cout << std::endl << n; return 0;}