تبلیغات
دنیای کامپیوتر ++c - برنامه ای بنوسید یک عدد از ورودی دریافت اگر عدد کامل باشد در خروجی نمایش دهد؟
دنیای کامپیوتر ++c

برنامه ای بنوسید یک عدد از ورودی دریافت اگر عدد کامل باشد در خروجی نمایش دهد؟

شنبه 25 اردیبهشت 1389

منظوراز عدد کامل  عددی هست که با مجموع مقسوم علیه های کوچک خود برابر است.





#include<iostream.h>
#include<conio.h>
int main()
{
int i,n,sum=0;

    cout<<"enter n:"; 
cin>>n;

for(i=1;i<=n/2;i++)
   if(n%i==0)
  {

   cout<<"\t"<<i;
   sum=sum+i;
   }
if (sum==n)
   
  cout<<"\n numbar is  kamel";
else
    
cout<<"\n numbar is not kamel";
getch();
return 0;}




What causes pain in the back of the heel?
جمعه 6 مرداد 1396 07:46 ب.ظ
Heya just wanted to give you a quick heads up and let you know a few of the pictures aren't
loading correctly. I'm not sure why but I think its a linking issue.
I've tried it in two different internet browsers and both show the same outcome.
aliakissam.jimdo.com
دوشنبه 26 تیر 1396 09:15 ب.ظ
It's going to be finish of mine day, however before finish
I am reading this enormous article to improve my know-how.
height increase
دوشنبه 22 خرداد 1396 07:11 ق.ظ
Sweet blog! I found it while surfing around on Yahoo News.

Do you have any tips on how to get listed in Yahoo News?

I've been trying for a while but I never seem to get there!
Many thanks
florabess.weebly.com
یکشنبه 21 خرداد 1396 10:16 ق.ظ
Hello, after reading this remarkable paragraph i am as well cheerful
to share my familiarity here with friends.
http://willinghate578.snack.ws/
چهارشنبه 3 خرداد 1396 10:32 ب.ظ
You really make it seem so easy with your presentation but I find this topic to
be actually something that I think I would never understand.
It seems too complicated and extremely broad for me. I'm looking forward for your next post,
I will try to get the hang of it!
BHW
چهارشنبه 6 اردیبهشت 1396 08:51 ب.ظ
I truly love your blog.. Excellent colors & theme. Did you build this website yourself?

Please reply back as I'm looking to create my own blog and would love
to find out where you got this from or just what the theme is named.
Thanks!
BHW
دوشنبه 28 فروردین 1396 03:59 ب.ظ
Because the admin of this website is working, no hesitation very quickly it will be well-known, due to its quality contents.
BHW
جمعه 25 فروردین 1396 06:21 ق.ظ
Hey there! Do you use Twitter? I'd like to follow you if that would be ok.

I'm undoubtedly enjoying your blog and look forward to new posts.
BHW
یکشنبه 20 فروردین 1396 12:43 ب.ظ
Hi there, You've done a great job. I will definitely digg it and personally recommend to
my friends. I'm sure they'll be benefited
from this site.
manicure
چهارشنبه 16 فروردین 1396 07:11 ق.ظ
Hello there! Do you use Twitter? I'd like to follow you if that would be
okay. I'm absolutely enjoying your blog and look forward to new posts.
 
لبخندناراحتچشمک
نیشخندبغلسوال
قلبخجالتزبان
ماچتعجبعصبانی
عینکشیطانگریه
خندهقهقههخداحافظ
سبزقهرهورا
دستگلتفکر


فهرست وبلاگ
پیوندهای روزانه
آرشیو
نویسندگان
آمار وبلاگ
  • کل بازدید :
  • بازدید امروز :
  • بازدید دیروز :
  • بازدید این ماه :
  • بازدید ماه قبل :
  • تعداد نویسندگان :
  • تعداد کل پست ها :
  • آخرین بازدید :
  • آخرین بروز رسانی :
جستجو
آخرین پستها