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
Answers
Answered by
0
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.
Similar questions