Wap qbasic to print no of digits in a number
Answers
Answered by
1
Answer:
Hope it helps uh mate ✌✌✌
Mark me brainlist..
Attachments:
Answered by
2
Explanation:
Basic Program to Count Number of Digits in a Number:-
- Let N be the input number.
- Initialize count = 0.
- Initialize num = N.
- Repeat the following steps while num > 0. Set count = count + 1. Set num = num / 10. This step removes the rightmost digit of num.
- The number of digits in N is equal to count.
✌✌
Similar questions
Science,
2 months ago
Math,
2 months ago
World Languages,
2 months ago
Science,
11 months ago
Math,
11 months ago