A
Arash_89
Guest
Hello,
What is this and how can I fix it?
Thanks
#include<iostream>
using namespace std;
int main() {
int n; cin >> n;
int arr[10] = { 0 };
while
{
arr[n%10]++;
n /= 10;
}
for (int i = 0; i < 10; i++)
{
cout << i<<": "<<arr << " "<<endl;
}
}
Continue reading...
What is this and how can I fix it?
Thanks
#include<iostream>
using namespace std;
int main() {
int n; cin >> n;
int arr[10] = { 0 };
while
{
arr[n%10]++;
n /= 10;
}
for (int i = 0; i < 10; i++)
{
cout << i<<": "<<arr << " "<<endl;
}
}
Continue reading...