На каком языка написан код помогите срочноооо
код
#include
using namespace std;
int main()
{
int n,k,cnt,num,sum;
cin>>n;
cnt=0;
while (n>0){
cnt++;
num=0;sum=0;
k=cnt;
while(k>){
sum+=k%10;
k=k/10;
num++;
}
if(sum%num==0){
n--;
}
}
cout << cnt;
return 0;
}
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.