What is wrong in this code ? it is not giving any output

#include //armstrong number
#include
using namespace std;
int main() {
int n1,n2;
cin>>n1>>n2;
int rem,rem1;
int sum=0;
int count=0;
for (int i=n1;i<=n2;i++){
int num=i;
int num1=i;
while(num!=0){
rem1=num%10;
count++;
num/=10;
}
while(num1!=0)
{

rem=num1%10;
sum+=pow(rem,count);
num1/=10;}
if(sum==i){
	cout<<i<<endl;
	cout<<count<<endl<<sum;

}
}


return 0;

}

hi @aishnee3sapra_80178610ab2d7d84
Refer this–>

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.