answersLogoWhite

0

In Visual Basic.... Declare a variable called "InputNumb" -->> Do some checking using the len function to ensure that it has four digits Declare a variable "Total" "Total" = left(IinputNumb, 1) + left(right(InputNumb, 3),1) + left(right(InputNumb, 2),1) +right(InputNumb,1) -- >> then return Total to the user in some way.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Write a program to convert a 2 digit BCD number into hexadecimal number?

Write a program to convert a 2-digit BCD number into hexadecimal


2 Write a program to convert a 2-digit BCD number into hexadecimal?

WRITE A PROGRAM TO CONVERT A 2-DIGIT bcd NUMBER INTO HEXADECIMAL


What is SAP give you the brief solution?

Write a program to convert a 2-digit BCD number into hexadecimal


How to write a java program to extract the last digit from the input?

Assuming you've entered a multi-digit number whole number (an integer), then take the modus (%) of the number and 10. E.g., if the number input was 1234, then 1234 % 10 is 4. Thus the final digit is 4. Note that modus 10 is the same as dividing the number by 10 and taking the remainder.


What is the smallest 5 digit number you can write?

The smallest 5 digit number you can write is 10000.


How do you Write a program that determines the number of occurrences of each digit in a given integer n?

there could be a part in it like this: int num, digit; int count [10]; do { digit = num%10; num != 10; ++count[digit]; } while (num);


How do you write a visual basic program to sum the odd number digits of a 12 digit code using division and Mod and while loops?

Function sum_odd_digits(ByVal number As Integer) As Integer Dim digit As Integer sum_odd_digits = 0 While number <> 0 digit = number Mod 10 If digit And 1 Then sum_odd_digits = sum_odd_digits + digit number = number / 10 End While End Function


Write a java program to print the last digit in Fibonacci series?

Just generate the Fibonacci numbers one by one, and print each number's last digit ie number%10.


Is there a program that get you a list of 8 digit number?

6677


What is the smallest digit you can write in the tens place of a three digit number?

.1


What is the smallest digit we can write in the hundreds place of a three-digit number?

1We can not start a three digit number with 0, so 1 is the smallest digit.


Write an addicion story for two 3-digit number?

write an addition story for two 3-digit numbers. write the answer to your story