Part-II Sum of Even and Odd Position Digits of Number in C using while loop | C Interview Series

Опубликовано: 18 Июнь 2026
на канале: Code With Bhupendra
832
18

#cprogramming #cinterviewprograms #cinterviewseries
In this C Interview Programming Video, I have covered how we can design a C Program to find sum of odd and even position digits of the given number and find difference between two.
Link to Part I:    • How to Find Sum of Even and Odd Position D...  
In Part-I I have used for loop and in this video I am using while loop.
For Example: If we input 1234 the output is sum1=4 sum2=6 difference=2

Method Used:
Inside loop, Divide number by 10 and use remainder till the given is not zero. If it is odd term add to sum1 else to sum2.
#codewithbhupendra #codeondemand

You can Watch my videos on Code::Blocks
I ) Top 10 Differences – Turbo C and Code::Blocks    • Top 10 Difference between Turbo C++ and Co...  
II) Installing and Setting Code::Blocks
Hindi:    • Codeblocks Installation and Settings Guide...  
English:    • Codeblocks Installation and  Settings Guid...  
Sindhi:    • Codeblocks Installation and Settings Guide...  


Hello Friends,
My Name is Bhupendra Khilrani
You can Subscribe to my channel
   / codewithbhupendra  
and
tech code guruji
   / @techcodeguruji  


Watch my following Playlists:
C Programming in Hindi
   • C Programming in Hindi  

C++ Tutorial in Hindi
   • C++ Tutorial in Hindi  

C Interview Series:
   • Count occurrence of each character in a st...  


Java Programming in Hindi
   • Java Programming in Hindi  


Python Tutorial in Hindi
   • Python Programming Tutorial  

PL/SQL Tutorial in Hindi
   • Multiple if else in PL/SQL with example pr...