#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
    int num[5],high=0,high_num=0,low=0,low_num=0,a=0;
    for (int a=0;a<5;a++)
    {
        cout<<"enter number "<<a+1<<":";
        cin>>num[a];
        }
        for
        (a=0;a<5;a++)
        
        
                     if(num[a]<high)
                     {
                                    high=num[a];
                                    high_num=a;
                                   
                                    }
                                    cout<<"highest number is.."<<high_num<<"\n";
                                    cout<<"highest number is.."<<high;
                                   
                                    getch();
                                    return 0;
                                    }

please CORRECT this Code

the problem is..
"PROGRAM THAT CAN ACCEPT 5 INPUTTED INTEGER AND DETERMINE
THE HIGHEST AND lowest INTEGER (USING ARRAY,FOR LOOP, AND IF CONDITION)

thank you!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.