ES-CS201 (Programming Solution Of Question Bank) This is only for 2nd Semester Students Hi, I am Arnab. Here you can find out full solution of codes given in the question bank of AOT for ES-CS201 subject. So don't panic for your examination. Just copy down the codes from my website & run in your local machine to get more clear concepts. If you have any query please contact me without any hesitation from here . So guys are you ready to get full marks??? Let's start Q1. Write a C program to calculate the sum of all negative and positive elements in an array. // Code to calculate all positive and negative values in an array #include<stdio.h> int main() { int n; scanf("%d",&n); int arr[n]; for(int i = 0; i < n; i++){ scanf("%d",&arr[i]); } int sum_of_pos = 0; int sum_of_neg = 0; for(int i: arr){ if(i<0){ sum_of_neg += i; } else{ sum_of_pos += i; } } printf("%d\n", sum_of_pos); print...
Don't panic with coding, it will enhance your life