#include
int max=0, min=0, numb;
int num[6], next=0;
char answer, ans;
void main(){
do{
next=15;
cout<<"Enter Number : ";
for(int i=0;i<5;i++){
gotoxy(next,2);
cin>>numb;
num[i]=numb;
next=next+10;
max=max>numb? max : numb;
min=min
cout<<"\n\t[A] - Find Number ";
cout<<"\n\t[B] - Find MAX ";
cout<<"\n\t[C] - Find Min ";
cout<<"\n\nChoosen Letter? : ";
cin>>answer;
if(answer=='a'||answer=='A'){
cout<<"\nEnter Number to search : "; cin>>numb;
cout<<"\nFound "<
for(int j=0;j<5;j++){
if(num[j]==numb){
cout<
cout<<"\nMax Value : "<
clrscr();
}
while(ans=='y');
gotoxy(28,10);
cout<<"COMPUTER PROGRAMMING 103";
gotoxy(29,11);
cout<<"MIDTERM PRACTICAL EXAM";
}
No comments:
Post a Comment