diff --git a/QUSTOJ/1744.c b/QUSTOJ/1744.c new file mode 100644 index 0000000..6932582 --- /dev/null +++ b/QUSTOJ/1744.c @@ -0,0 +1,62 @@ +#include + +int a[16]; + +int findmax() +{ + int max=-(1e9); + int imax=-1; + for(int i=0;i<10;i++) + { + if(a[i]>max) + { + max=a[i]; + imax=i; + } + } + return imax; +} + +int findmin() +{ + int min=1e9; + int imin=-1; + for(int i=0;i<10;i++) + { + if(a[i]