![ContractedBlock.gif](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
![ExpandedBlockStart.gif](https://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif)
#include
<
iostream
>
using std::cout;
using std::cin;
using std::endl;
int main()
{
int grade,hightestGrade =- 1 ;
cout << " enter grade(enter end-of-file to end): " ;
while (cin >> grade){
if (grade > hightestGrade)
hightestGrade = grade;
cout << " enter grade (enter end-of-file to end): " ;
}
cout << " Hightest grade is: " << hightestGrade << endl;
return 0 ;
}
using std::cout;
using std::cin;
using std::endl;
int main()
{
int grade,hightestGrade =- 1 ;
cout << " enter grade(enter end-of-file to end): " ;
while (cin >> grade){
if (grade > hightestGrade)
hightestGrade = grade;
cout << " enter grade (enter end-of-file to end): " ;
}
cout << " Hightest grade is: " << hightestGrade << endl;
return 0 ;
}