C Programming
C Programming

Write a Program to print the sum of digits of a given number.

Write a Program to print the sum of digits of a given number.


#include <stdio.h>
#include <conio.h>
int main ()
{
    int no , temp , sum ;
    printf(“Input a77 number : “);
    scanf(“%d” , &no );
   
    temp = no;
 
    while(temp>0)
    {
        sum = sum + temp%10;
        temp = temp/10;
    }
   
 
    printf(“%d is sum of digits of %d number.\n” , sum , no );
 
    return 0;
}


 

Topics Covered :

 

  • find quotient and remainder in c++
  • how to find quotient and remainder in c++
  • c++ program to find quotient and remainder
  • c++ programs
  • c++ programming tutorial
  • c++ programming language
  • programming
  • quotient and remainder in c
  • how to write a calculator program – add
  • c program to make simple calculator
  • learn c programming
  • c programming basics
  • subtraction
  • c programming tutorial
  • c programming
  • division using c language
  • c programming for beginners
  • c language tutorial for beginners
  • calculator program in c
  • calculator program
  • trending
  • multiplication
  • youtube shorts
  • calculator
  • c language
  • shorts

 

 


 

 


 

Thanks for reading this blog. Hope you get satisfied with the blog and definitely this blog must have valued your time and effort of reading.

Take a time to connect our other digital creations such as Instagram , Facebook and Youtube.

 

🧑‍💻🧑‍💻 Social Media Links of Tech DCode :

👉🏻 YouTube : https://www.youtube.com/channel/UCjJnEdeugftBwQ3yMuD4B_A
👉🏻 Instagram : https://www.instagram.com/thetechdcode/
👉🏻 Facebook Page : https://www.facebook.com/thetechdcode
👉🏻 Twitter : https://twitter.com/thetechdcode
👉🏻 Telegram Channel : https://t.me/thetechdcode
👉🏻 Tech DCode Linktree : https://linktr.ee/thetechdcode
👉🏻 My Personal Handles : https://linktr.ee/virtualshivamin

🧑‍💻🧑‍💻 Social Media Links of SHIVAM SINGH (OWNER) :

👉🏻 Instagram : https://www.instagram.com/virtualshivamin/
👉🏻 Facebook Page : https://www.facebook.com/virtualshivamin/
👉🏻 Twitter : https://twitter.com/virtualshivamin/
👉🏻 Personal Linktree : https://linktr.ee/virtualshivamin 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *