InterviewSolution
Saved Bookmarks
| 1. |
Draw a flowchart and check whether the number is two digit or not. If it is a two digit number, then find first and last digit of the number |
|
Answer» Answer: ===>> Step by step description to find first DIGIT of a number.Input a number from USER. Store it in some variable say NUM . Copy the value of num to some temporary variable say first = num . DIVIDE first by 10 , till first >= 10 . Finally you are LEFT with first digit in first variable. |
|