111-DI-guruh talabasi Shukurov Maxmatmirzo
#include
using namespace std;
int sumRY(int n)
{ int summ=0,r;
while (n>0)
{
r=n%10;
summ+=r;
n=n/10;
}
return summ;
}
int main ()
{
int a;
cout<<"Sonni kiriting:";cin>>a;
cout<<"Sonning raqamlari yig'indisi:"<
return 0;
}
Do'stlaringiz bilan baham: |