answersLogoWhite

0


Best Answer

If you know that the number input will always be three digits:

output = 10 * (int)(input / 100) + (input % 10);

If you want to idiot proof it (eg. too many digits):

output = 10 * (int)((input % 1000) / 100) + (input % 10);

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which code i need to delete middle digit in 3 digit number in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the name of two-digit number or a digit and number that is located after the CPT code number and provides more details about the code?

two- digit modifier


What is Geico's five digit insurance code number?

GEICO insurance company five digit code number


What is the name of the two digit number or a digit and a number that is located after the cpt code number and provides more detail about the code?

Modifier


What is the name of the two-digit number or a digit and a number that is located after the cpt code number and provides more detail about the code?

Modifier


What is the name of the two digit number or a number that is located after the cpt code number and provides more detail about the code?

two- digit modifier


Is the code number the pin number?

no-3 digit security code on back


What is the name of the last digit in the bar code number?

check digit


What is Code of engine at VIN number for gm?

The eighth digit of the vin number is the engine code.


What is someone's credit card number and security code?

The credit card number is the 16-digit number on the front of the card; the security code is a three- or four-digit number on the back of the card.


How do i read a 1967 Chevy Chevelle VIN number?

First digit is Divisional code Next 4 are Body style code The 6th digit is Model year The 7th digit is the Plant code The last 6 are the Unit number


How many possible 3 digit area codes can be created without repeating a number?

The number of 3-digit numbers with no repeated digits is simply 10x9x8 = 720, if you allow, for example, 012 as a 3-digit number. There are 10 digits, any of which might be the first digit. The second digit can be any digit except the digit that was used for the first digit, leaving 9 possibilities. The third digit then has 8 possibilities, since it can't be the same as the first or second digit. The actual number of possible area codes will be lower, because there are additional restrictions on the number combinations for a valid area code. For example, in North America (USA, Canada, etc.), the first digit of an area code cannot be 0 or 1 and the middle digit cannot be 9.


How do you delete a build a bear ID number and key code from online?

Go on build a bear, type in your code, look at the top right corner it should say "delete code" hit that then it will delete!