#include <iostream>
using namespace std;
int main()
{
int x;
cin>>x;
for(int i=1;i<=x;i++)
if(x%i==0)
if(i%10%2!=0)
cout<<i<<" ";
return 0;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
#include <iostream>
using namespace std;
int main()
{
int x;
cin>>x;
for(int i=1;i<=x;i++)
if(x%i==0)
if(i%10%2!=0)
cout<<i<<" ";
return 0;
}