how find a occurence of numbers 0-9 in a input searated by spaces without using array in c++? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

how find a occurence of numbers 0-9 in a input searated by spaces without using array in c++?

for example i have 6 numbers entered as 1 2 3 4 5 6 this all are separated by spaces when user press enters the values gets printed out. number can be of any size maybe of 5,6,10 anything.

27th Sep 2017, 5:29 PM
shreyanshu shankar pandey
shreyanshu shankar pandey - avatar
5 Réponses
+ 9
Can't really understand what you want. Is it possible to explain further? ATM, I understand that your input consist of multiple integer values seperate by spaces, but what are you trying to accomplish?
27th Sep 2017, 6:05 PM
Hatsy Rei
Hatsy Rei - avatar
+ 1
i want a solution for this.. Write a program that accepts a set of digits (0 to 9) as input and prints a horizontal and vertical histogram representing the occurrences of each digit. Let the user enter the number of digits and values from the keyboard. Use the same values for each histogram. Error check values (0 – 9) only. Do not use an array. Refer to the sample output below.
27th Sep 2017, 6:14 PM
shreyanshu shankar pandey
shreyanshu shankar pandey - avatar
+ 1
required input output format is : Enter a Number: 12 Enter 12 digits: 1 7 2 9 6 7 1 3 7 5 7 9
27th Sep 2017, 6:15 PM
shreyanshu shankar pandey
shreyanshu shankar pandey - avatar
+ 1
can u explain it little brief
25th Dec 2017, 4:45 AM
Kalpana Reddy
0
like we have to calculate the frequency of a number without using arrays. for example Enter a number:5 Enter 5 values from 0-9: 1 3 3 2 1 1- two times 3-two times 2-one time
25th Dec 2017, 4:51 AM
shreyanshu shankar pandey
shreyanshu shankar pandey - avatar