C++ program to find the maximum number

#include <iostream.h>
int main()
{
int x, num;
int max=-32768;
x=1;
while(x<10)
{
cout << "\nEnter a number:";
cin >> num;
x++;
}
cout << "\nThe maximum number = " << max;
}

It's very calm over here, why not leave a comment?

Leave a Reply

You must be logged in to post a comment.