converting two keypad inputs into one decimal number

This is a discussion on converting two keypad inputs into one decimal number within the C Programming forums, part of the General Programming Boards category; Hi. I'm a beginner learning to program PIC Microcontrollers n C. I know the assembler language. My question is. How ...

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

    converting two keypad inputs into one decimal number

    Hi. I'm a beginner learning to program PIC Microcontrollers n C. I know the assembler language.

    My question is. How do you convert two or more keypad inputs into one decimal number.

    For example: I input 1 and 6 and what the value to be 16 .

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,336
    Multiply by 10 perhaps?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 15
    Last Post: 10-06-2009, 11:20 PM
  2. decimal to number if digits in different bases
    By jorgejags in forum C Programming
    Replies: 21
    Last Post: 09-24-2008, 12:55 PM
  3. Need help with this compiler error
    By Evangeline in forum C Programming
    Replies: 7
    Last Post: 04-05-2008, 09:27 AM
  4. Array of boolean
    By DMaxJ in forum C++ Programming
    Replies: 11
    Last Post: 10-25-2001, 11:45 PM
  5. Help! Can't read decimal number
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 09-07-2001, 02:09 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21