Thread: Qestion.. (:

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    5

    this is the qestion

    For some reason I cant think about a solution
    suggestion will be accepted (:




    Write a program receiving 30 three-digit integers. The program to calculate the sum of digits of unity, of the dozens and hundreds of all 30 numbers recorded on the plan at the end print the three amounts together with a suitable

  2. #2
    Registered User
    Join Date
    Dec 2011
    Posts
    795
    This sounds suspiciously like a homework assignment, especially because it's devoid of typos and other errors in your post.

    Also, don't use scanf() like the guy above suggested, it teaches terrible coding habits unlike fgets() or fread().

  3. #3
    Registered User
    Join Date
    Jan 2009
    Location
    Australia
    Posts
    375
    Quote Originally Posted by memcpy View Post
    Also, don't use scanf() like the guy above suggested, it teaches terrible coding habits unlike fgets() or fread().
    Sorry, what? Please link me to somewhere that says taking input with scanf, specifically numerical input, teaches terrible coding habits.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. qestion/ example of sweep line
    By Reemj in forum C++ Programming
    Replies: 3
    Last Post: 01-03-2011, 02:43 PM
  2. a qestion about modern editors
    By Masterx in forum C++ Programming
    Replies: 5
    Last Post: 02-01-2009, 01:04 AM
  3. Warning! Newbie Qestion : fscanf!
    By Karmachrome in forum C Programming
    Replies: 4
    Last Post: 11-13-2005, 10:59 AM