4. Write a program to compute the sum of even numbers, sum of odd numbers of the array sum even: 46 sum odds: 64 5. Write a program to check for primes in the inp_arr. Make sure to store the results as shown below. int inp_arr [10]={9,7,2,4,25,23,2,8,10,20}; int out_an[10], // {2,7,23,2,#,#,#,#,#,H,#} 6. Write a prograin to compute the cumulative sum of inp arr. int imp arr [10]={9,7,2,4,25,23,2,8,10,20}; int out_anr[10]; /1{9,16,18,22,47,70,72,80,90,110} : 7. Write a program to Rotate the inp arr anray to the right 3 times int inp_anr [10]={9,7,2,4,25,23,2,8,10,20}. int out arr [10]; / rotate 1: {20,9,7,2,4,25,23,2,8,10} : rotate 2:{10,20,9,7,2,4,25,23,2,8}; rotate 3:(8,10,20,9,7,2,4,25,23,2) ://final answer 8. Write a program to flip the inp arr anay int inp arr[10]={9,7,2,4,25,23,2,8,10,20); int out_an [10]://{20,10,8,2,23,25,4,2,7,9} :