We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
using namespace std;
int main(){
int n;
cin>>n;
int result = 0;
long long int t;
for(int i=0;i>t;
}
while(t--){
int d=t% 10;
if(d!=0 && t%d==0 )
result ++;
}
cout<
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Find Digits
You are viewing a single comment's thread. Return to all comments →
can you find mistake in this code plz??
include
using namespace std; int main(){ int n; cin>>n; int result = 0; long long int t; for(int i=0;i>t; } while(t--){ int d=t% 10; if(d!=0 && t%d==0 ) result ++;
} cout<