c++ codes

#include
#include
using namespace std;
int main()
{
int limit;
cout<<"Enter Number of Inputs: ";
cin>>limit;
string name[limit];
int num[limit], max, min, ma=0, mi=0;
for ( int a=0; a!=limit; a++ ) {
cout<<"Enter Name of User: ";
cin>>name[a];
cout<<"Enter Number: ";
cin>>num[a];
max = num[0];
min = num[0];
}
for ( int a=0; a!=limit; a++ ) {
if ( max < num[a] ) {
max = num[a];
ma = a;
}
if ( min > num[a] ) {
min = num[a];
mi = a;
}
}
cout< cout< getch();
}

One Response to “c++ codes”

  1. jonnyboy24 Says:

    Yes, I do think your opinion is righteous. (So do lots of people). Luckily majority of people are intelligent :).

Leave a Reply