diff --git a/day10.cpp b/day10.cpp new file mode 100644 index 0000000..6449da2 --- /dev/null +++ b/day10.cpp @@ -0,0 +1,127 @@ +#include +#include +using namespace std; +int main() +{ +// vector v; +// cout<<"Size: "< v(6); +// cout<<"Enter the vector element"<>v[i]; +// } +// //enter key to find +// int key; +// cout<<"Enter key to find:"<>key; +// +// //for output +// int ans=-1; +// cout<<"The result is"< n(6); +// +// cout<<"Enter the element for the vector"<>n[i]; +// } +// +// //for output +// int key; +// cout<<"Enter key to found:"<>key; +// +// +// //for output +// int total_count=0; +// cout<<"Output Here.."< k(6); +// +// //for taking input +// cout<<"Manually Enter the element:"<>k[i]; +// } +// +// //enter the ele to find from the vector. +// int ele; +// cout<<"Enter the element:"<>ele; +// +// //for output +// int count=0; +// for (int i=0; i ele) +// { +// count++; +// } +// } +// cout<<"Total number that are stricty greater then ele:"<>arr[i]; + } + + //output + bool isflag=true; + for(int i=0;i<5;i++) + { + if (arr[i] <= arr[i-1]) + { + isflag=false; + } + } + cout<<"The given array is:"<