镇乃天子
我是无惨
This commit is contained in:
20
666/pig.cpp
Normal file
20
666/pig.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
|
||||
int mypai(int arr[],int b) {
|
||||
int max=arr[0];
|
||||
for(int j=1;j<5;j++)
|
||||
if(max < arr[j])
|
||||
|
||||
max=arr[j];
|
||||
|
||||
return max;
|
||||
}
|
||||
|
||||
int main(){
|
||||
|
||||
int a[5]={110,2,13,22,4};
|
||||
int max=mypai(a,5);
|
||||
cout<< max << endl;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user