Want this question answered?
146 times.
That depends on what time it is, and whether the clock is plugged in.
#include<iostream> #include<array> #include<sstream> std::array<int,10> get_frequency (int range_min, int range_max) { if (range_max<range_min) std::swap (range_min, range_max); std::array<int,10> digit {}; for (int count {range_min}; count<=range_max; ++count) { std::stringstream ss {}; ss << count; std::string s {}; ss >> s; for (auto c : s) { ++digit[c-'0']; } } return digit; } int main () { std::array<int,10> digit {}; digit = get_frequency(1, 89); std::cout << "In the range 1 to 89...\n"; for (int d {0}; d<10; ++d) { std::cout << "\tthe digit " << d << " appears " << digit[d] << " times.\n"; } } Output: In the range 1 to 89... the digit 0 appears 8 times. the digit 1 appears 19 times. the digit 2 appears 19 times. the digit 3 appears 19 times. the digit 4 appears 19 times. the digit 5 appears 19 times. the digit 6 appears 19 times. the digit 7 appears 19 times. the digit 8 appears 19 times. the digit 9 appears 9 times.
many times.
158 In every hour of the day except 7 am and 7 pm the digit 7 appears on the clock 6 times. you take 2 hours (7am and 7pm) out of 24 hours and the rest are 22 hours. Then 22 hours multiply x 6 because in each of the 22 hours 7 appears 6 times, 22 x 6 makes 132. The remaining 2 hours from 24 are 7am and 7pm, 7 appears 13 times in each of these hours; 7:00, 7:07, 7:17, 7:27, 7:37, 7:47, 7:57. Then you do 13 x 2 because there are 2 7:00 (am and pm), you get 26. Now the total of 132 from 22 hours and 26 from the other 2 hours brings the total of 158; 132+26=158, our final answer is 158. so in 24 hours the digit 7 appears in 158 different times on a digital clock. By: Ahmad J. I.S.303 class 8-326.
The digit 1 appears 301 times, as opposed to 300 for the digits 2 to 9.
1:11
11 times
It shows each of the 4-digit numbers just once in a 12 hour cycle. If you were asking how many times each digit, 0-9, appears in a 12 hour cycle: 0 - 252 times 1 - 492 times 2 - 312 times 3 - 252 times 4 - 252 times 5 - 252 times 6 - 132 times 7 - 132 times 8 - 132 times 9 - 132 times Assuming that times like 9:52 do not appear as 09:52.
120 times
5 times
Assuming you mean in the numbers 1, 2, 3, ..., 998, 999, 1000 then the digit 0. (The digit 1 appears 301 times, the digits 2-9 all appear 300 times each, but the digit 0 only appears 192 times.)