Thread: Need codes. Help. Bit Confused

  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    1

    Need codes. Help. Bit Confused

    Create a program that will ask the user to enter five numbers. Use functions to
    compute the sum, difference of 1 & 2 entered numbers,
    product, quotient of 3 & 5 entered numbers.

    Sample Output:
    Enter number: 1
    Enter number: 2
    Enter number: 3
    Enter number: 4
    Enter number: 5
    Entered numbers are 1, 2, 3, 4 and 5
    The sum of the five numbers is 15
    The difference of 1 & 2 entered numbers is -1
    The product of the five numbers is 120
    The quotient of 3 & 5 entered numbers is 0.6

    Another Entry? y for yes, n for no to exit the program

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 16 bit compilar or 32 bit compilar
    By rajkumarmadhani in forum C Programming
    Replies: 16
    Last Post: 12-04-2007, 09:48 AM
  2. Bit Manipulation Questions
    By CPPNewbie in forum C++ Programming
    Replies: 7
    Last Post: 08-12-2003, 02:17 PM
  3. Copy bit to bit
    By Coder2Die4 in forum C Programming
    Replies: 15
    Last Post: 06-26-2003, 09:58 AM
  4. Bit manipulation
    By pkalluri in forum C++ Programming
    Replies: 5
    Last Post: 05-12-2003, 07:06 AM