Special Programs in C − Check If The Number Is Perfect Number

preview_player
Показать описание
C Programming & Data Structures: Special C Programs − Check If The Number Is Perfect Number or Not.
Topics discussed:
1) Perfect Number
2) C program to check if the number is a perfect number

Music:
Axol x Alex Skrindo - You [NCS Release]

#CProgrammingByNeso #CProgramming #PerfectNumberProgram
Рекомендации по теме
Комментарии
Автор

Thanks a lot... Yeah now i am very confident in programming, Because of you..

arunm
Автор

without using rem variable, we can directly check if(number%i==0){ sum=sum+i;}

mArjunyadav
Автор

Thanks a lot sir...your teaching skills are simply amazing !!

karthik-vnni
Автор

I was able to program a solution to the problem based on the definition of a perfect number alone, that's some progress. This is a very good series of lessons, much better than most of the tutorials on offer. Many thanks for the high quality content!

Jeremyak
Автор

Amazing Explanation sir and very attractive presentation 😊

sakshampaliwal
Автор

You are the best I am in love uth programming because of you

jayantramesh
Автор

thank u so much sir your teaching is really awesome...

AnkitSingh-xrlu
Автор

Sir excellent videos and please upload recursion and pointers topic.

saitejabandaru
Автор

for(int i = 1; i < number; i++){
if(number % i == 0){
sum += i;
}
}

acctualy you dont need rem variable

daverussell
Автор

Sir please upload all topics which you told us in starting to teach

ashokyadavfqplmgxjia
Автор

2:00 "R.E.M. - Losing my religion" 🎶

mar_kha
Автор

tysm NESO!! Lots of lovee on Valentines 💌💌🙏🙏

ayushiyadav
Автор

Wow this a great video, but sir why shouldn't we divide the number by 2 to cut down the iteration time. Thus for(i=1, i <= number/2, i++). Since the possible diviseurs will never exceed number/2.

jonasasare
Автор

Sir your have not included the condition when number=0, I think we have to add if(number>0) above while Loop sir

manikantareddy
Автор

A suggestion:
Since we are not taking the number itself as a divisor we can run the iteration to number/2 {int(number/2)+1, to avoid the decimal result in case of odd numbers} to reduce execution time for larger numbers.

AyashAshraf
Автор

Can you teach us "python programming"?

arunm
Автор

Sir some numbers not satisfy like 4, 12 etc... What can I do then ? Any other logic?

rounakmukherjee
Автор

in for loop, i<=number/2 will be more beneficial

bapeshwarvinnakota
Автор

Please upload some videos for 'Design and Analysis of Algorithms(DAA)'.

vaibhuuanand
Автор

If we enter 10.5 as input. It says 10 is not a perfect number. Why?

ganeshgauttam