hello
n is 10 numbers
10
50
25
75
2000
30
500
800
10
25
485
p.s var is the variable contains all above numbers
for example
if the user enters 25
how do i print out how many times number 25 was enterd
not in which index it is
thanks in advance
cout<< "enter an number" <<endl;
double c;
cin >> c;
for (int i=0; i<n; i++)
{
if (c==var[i])
{
cout << i ;
cout << "found" << endl;
}
}