diff --git a/IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/InvertedBar.cpp b/IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/InvertedBar.cpp new file mode 100644 index 00000000..7c00bc21 --- /dev/null +++ b/IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/InvertedBar.cpp @@ -0,0 +1,23 @@ +#include +using namespace std; +int main() { + int n, m=0; + cin>>n; + int a[n]; + for(int i=0;i>a[i]; + if(a[i]>m) + m=a[i]; + } + for(int i=0;i +#include +using namespace std; +int main() { + int n; + cin>>n; + if(n>90){ + cout<<"excellent"; + } + else if(n>80 && n<=90){ + cout<<"good"; + } + else if(n>70 && n<=80){ + cout<<"fair"; + } + else if(n>60 && n<=70){ + cout<<"meets expectations"; + } + else if(n<=60){ + cout<<"below par"; + } +} diff --git a/IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/patterns1.cpp b/IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/patterns1.cpp new file mode 100644 index 00000000..cb1d75cc --- /dev/null +++ b/IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/patterns1.cpp @@ -0,0 +1,10 @@ +#include +int main(){ + int n; + std::cin>>n; + for(int j=0;j +using namespace std; +int main() { + int n; + cin>>n; + int a[n], b[n]; + for(int i=0;i>a[i]; + for(int i=0;i +using namespace std; +int main() { + int n,a,m=0,k=2147483647; + cin>>n; + for(int i=0;i>a; + if(a>m) + m=a; + if(a