Thread: sum of digits of a number reducing to 1 digit.

  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    3

    sum of digits of a number reducing to 1 digit.

    Write a Program to find the sum of digits of a number reducing it
    to one digit.using do while loop.

  2. #2
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by amolkarale View Post
    Write "a Program to find the sum of digits of a number reducing it
    to one digit.using do while loop."
    "a Program to find the sum of digits of a number reducing it
    to one digit.using do while loop"

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    No, I have my own work to do.

    Homework Policy

  4. #4
    Registered User
    Join Date
    Sep 2011
    Posts
    3
    i am new to forums i dont know what are qoutes?

  5. #5
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by amolkarale View Post
    i am new to forums i dont know what are qoutes?
    If you try "Reply With Quote" (look down and right), you'll get it.

    You'll probably also be posting code soon, make sure you read this first:

    Announcements - General Programming Boards

    Or prepare to be chastised.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  6. #6
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by amolkarale View Post
    Write a Program to find the sum of digits of a number reducing it
    to one digit.using do while loop.
    C Tutorials. Start reading.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  7. #7
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by amolkarale View Post
    i am new to forums i dont know what are qoutes?
    Quote Originally Posted by MK27 View Post
    If you try "Reply With Quote" (look down and right), you'll get it.
    Instead of (or in addition to) the Like button, I want an "I lolled" button, so I can click it on both of you.

    He's talking about this:
    Quote Originally Posted by manasij7479 View Post
    "a Program to find the sum of digits of a number reducing it
    to one digit.using do while loop"

    Quzah.

    [Quzah, Dude, and 2 others lolled.]
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 10-31-2009, 06:49 PM
  2. reducing digits problem
    By effa in forum C++ Programming
    Replies: 5
    Last Post: 08-17-2009, 10:45 AM
  3. five digit number with different digits
    By khdani in forum C Programming
    Replies: 11
    Last Post: 05-03-2009, 11:33 AM
  4. To get the sum of digits of a five digit number
    By hum_tum2005007 in forum C Programming
    Replies: 8
    Last Post: 06-15-2008, 04:39 PM
  5. Adding a Large number digit by digit
    By mejv3 in forum C Programming
    Replies: 1
    Last Post: 09-14-2007, 03:28 AM