English, asked by chunwalmadhu3585, 8 months ago

#include using namespace std;
int main()  
{  
   int num,sum = 0;  
   cin>>num;
   int n = num;  
   while(num > 0)
   {  
       int rem = num%10;  
       sum = sum + rem;  
       num = num/10;  
   }      
   if(n % sum == 0)  
       cout <<"Harshad Number";  
   else  
       cout <<"Not Harshad Number";
   return 0;  
}

Answers

Answered by dharaneeshkumar1803
1

Answer:

ITZ NT AN NGLISH QOSTIN

Similar questions