hi this is my first post i need help for this problem..:(
#include <iostream>
using namespace std;
int main()
{
int x=0;
int y=0;
int num;
cout << "Give a real number:"
for(int i=0;i<10;i++)
{
if(x>y)
y=x;
cout << "The biggest number is: " << y << endl;
}
Last edited on
You need to track more than just the biggest number; you need to track the number of occurrences of it.
yes i need to track than just the biggest number....
For starters, any time the condition, x > y, is true the count will be 1.