#ifndef F1_CPP #define F1_CPP #include #include #include /* This function finds the maximum of ten numbers */ int I_Max(void) { int max,temp; cout<< "Please give me ten numbers of integer \n" ; cin>>temp ; max=temp ; for(int i=0; i<9 ; i++) { cin>>temp; if(temp > max) max = temp ; } cout<<"The maximum number was "<>ch; if( (ch>='a' && ch<='z')||(ch>='A'&& ch<='Z')) cout<<"\nThis was a letter\n" ; else if ( ch >= '0'&& ch<='9') cout<<"It was a digit \n"; else cout<<"I don't know what it was\n"; /* switch(((int)ch-8)/10) { case 4: cout<< "It was a digit\n"; break; default: cout<<"Sorry I don't know what you typed, but sure\n" <<"it was not a letter or digit\n" ; } */ } } void Devide_177(void) { int i=0; cout<<"Those numbers between 1 and 100 which can be devided by 7\n"; for (i=7;i<=100; i+=7) cout<>height>>width; cout<<"\n"; for(int j=0; j>number ; temp=number; do { remain=temp%10; capacitor[i]=remain; temp=temp/10; cout<1 ; k--) power*=10; for(int j=0 ;i>0;i--,j++) { revnum+=power*(float)capacitor[j]; power=power/10; } cout<<"\n"<0) { remain=temp%10; temp=temp/10; if(remain==5) { flag=1; break; } else continue; } return flag ; } Check_for_5() { long aray[3]; int flag[3]; cout<<"\nGive me 3 numbers of long or integer\n" ; for(int i=0; i<3;i++) { aray[i]=flag[i]=0; cin>>aray[i]; flag[i]=Is_5_Inside(aray[i]); } for(int j=0;j<3;j++) { if (flag[j]==1) cout<<" The "<b ? b : a ; } } int Max_Denom(int a ,int b) { int half,max_denom; int min1; min1=min(a,b); half=min1/2+1; for(int i=1; i<=half; i++) { if((a%i==0)&&(b%i==0)) max_denom=i; } return max_denom ; } int Find_Max_Denom(void) { int a,b; cout<<"\nThis function finds the maximum denominator of two numbers\n"; cout<<"Please give me those two numbers\n"; cin>>a>>b; int denom= Max_Denom(a,b); cout<<"\nMaximum denominator is "<<"of "<