eolymp
bolt
Try our new interface for solving problems
Məsələlər

Əvvəlki ədəd 4

dərc olunub 11.01.24 09:10:08

n=int(input()) n=n-1 while(True): if(n%2!=0 and n%3!=0 and n%5!=0): print(n) break else: n=n-1

dərc olunub 08.04.24 12:21:56

include <iostream>

include <cmath>

using namespace std;

define ll long long

int main() { ll n; cin>>n; n--; while(n%2==0 || n%3==0 || n%5==0) { n--; } cout<<n; }

dərc olunub 12.04.24 15:15:48

include <bits/stdc++.h>

using namespace std; int main() { long long n; cin>>n; n--; while(n%2==0 || n%3==0 || n%5==0) { n--; } cout<<n; }

dərc olunub 14.04.24 22:14:25

include <iostream>

include <cmath>

using namespace std;

int main () { long n, m = 0, cem; cin >> n; n--; while (n % 2 == 0 || n % 3 == 0 || n % 5 == 0) { n--; } cout << n;

} //zed botumdu olacaqda