View Code of Problem 68

#include <iostream>
using namespace std;
int main()
{
	int max=0;
	
	int arr[3];
	for(int i=0;i<3;i++)
	{
		cin>>arr[i]; 
	}
	
	max=arr[0];
	for(int j=0;j<3;j++)
	{
		if(max<arr[j])
		{
			max=arr[j];
		}
		
	}
	cout<<max;
	return 0;
}

Double click to view unformatted code.


Back to problem 68