Skip to content
tejsumeru-logo

Tejsumeru

Thoughts Become Reality
  • Home
  • Tutorials
    • Java
    • C language
    • Python
      • SciPy
    • C++ Language
    • PHP
    • Data Structure
    • Kotlin
    • Go Lang
  • Interview Quetions
  • About Us
tejsumeru-logo

Tejsumeru

Thoughts Become Reality
  • Home
  • Tutorials
    • Java
    • C language
    • Python
      • SciPy
    • C++ Language
    • PHP
    • Data Structure
    • Kotlin
    • Go Lang
  • Interview Quetions
  • About Us

Find Sum Of Digit For Given Value By User.

  • tejsumeru.12@gmail.com tejsumeru.12@gmail.com
  • C language

This problem will calculate the sum of all digit in the value give by user. #include<stdio.h> void main() { long long no,temp; int rem,sum=0; printf(“\n\tEnter 5 to 6 digit number “); scanf(“%lld”,&no); temp=no; //printf(“no=%ld”,no); do { while(temp!=0) { rem=temp%10; //// printf(“rem=%d\n”,rem); sum=sum+rem; temp=temp/10; } //printf(“\nsum… Read More »Find Sum Of Digit For Given Value By User.

Recent Post

  • Step-by-Step Guide to Installing and Configuring Java SpringBoot
  • Setting up SpringBoot for Java Development: Tips, Tricks, and Best Practices
  • Integrating ChatGPT API into Your Android App: A Guide to Building Cutting-Edge Chatbots
  • What is Android Jetpack Compose: An Introduction to Google’s UI Toolkit
  • Efficient Java Microservices with Quarkus: A Guide to Setting Up the Framework




Copyright © 2018 Tejsumeru