diff --git a/sahil.cpp b/sahil.cpp new file mode 100644 index 0000000..48372fc --- /dev/null +++ b/sahil.cpp @@ -0,0 +1,7 @@ +#include +using namespace std; +int main() +{ + cout<<" i am good"; + return 0; +} \ No newline at end of file diff --git a/sahilprom.cpp b/sahilprom.cpp new file mode 100644 index 0000000..b18fef8 --- /dev/null +++ b/sahilprom.cpp @@ -0,0 +1,22 @@ +#include +using namespace std; +int main() +{ + int a,b,n,x,y,ar[100]; + cout<<"\nEnter no. of elements of array (upto 100):"; + cin>>n; + cout<<"\nNow, Enter Elements\n"; + for(b=0;b>ar[b]; } + x=0;y=n; + while(x!=1) + { x=0; + for(b=1;b