From c51ca0c7d815a7c5ebd9a0f28d0ba039e6180312 Mon Sep 17 00:00:00 2001 From: sahilprom Date: Wed, 9 Oct 2019 17:20:30 +0530 Subject: [PATCH] my first pr for tshirt --- sahil.cpp | 7 +++++++ sahilprom.cpp | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 sahil.cpp create mode 100644 sahilprom.cpp 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