Computer Science, asked by soumyashisghosh27, 4 months ago

Wap qbasic to print no of digits in a number​

Answers

Answered by riya773
1

Answer:

Hope it helps uh mate

Mark me brainlist..

Attachments:
Answered by pds39937
2

Explanation:

Basic Program to Count Number of Digits in a Number:-

  1. Let N be the input number.
  2. Initialize count = 0.
  3. Initialize num = N.
  4. Repeat the following steps while num > 0. Set count = count + 1. Set num = num / 10. This step removes the rightmost digit of num.
  5. The number of digits in N is equal to count.

Similar questions