i need all #include main ()#include tinclude main ()int X(7]={2,5,1,3,6,9,7}, S=0;for (int i-0;i tinclude #include #include main ()main ()int X[7)-(2,5,1,3,6,9,7}, S=0;for (int i=0;i =5)...

i need all
Q.4) What is the function of the following C++ Programs?<br>Part A<br>#include<iostream.h><br>#include<conio.h><br>main ()<br>#include<iostream.h><br>tinclude<conio.h><br>main ()<br>int X(7]={2,5,1,3,6,9,7}, S=0;<br>for (int i-0;i<7;i++) {<br>S=S+X[i];<br>int X[7]=(2,5,1,3,6,9, 7), C=0;<br>for (int i-0;i<7;i++) (<br>if (X[i]2==1) C++;<br>2<br>cout<<s/7.0;<br>getch ();<br>cout<< C;<br>getch ();<br>tinclude<iostream.h><br>tinclude<conio.h><br>#include<iostream.h><br>#include<conio.h><br>main ()<br>main ()<br>int X[7)-(2,5,1,3,6,9,7}, S=0;<br>for (int i=0;i<7;i++){<br>if (X[i]%2==0) St=X[i];<br>int X[7]={2,5,1,3,6,9,7}, s=0;<br>for (int i=0;i<7;i++) {<br>if (X[i]>=5) S+=X[i];<br>3<br>4<br>cout<< S;<br>cout<< S;<br>getch ();<br>getch ();<br>tinclude<iostream.h><br>tinclude<conio.h><br>main ()<br>int X[7]={2,5,1,3,6,9,7};<br>for (int i=0;i<7;i++){<br>if (X[i]>=5) cout<<X[i]<<'\t';<br>getch ();<br>Part B<br>tinclude<iostream.h><br>include<conio.h><br>main ()<br>#include<iostream.h><br>#include<conio.h><br>main ()<br>int X[7]=(2,5,1,3,6,9,7};<br>for (int i=0;i<7;i++){<br>if (X[i]<6) cout<<X[i]<<'\t';<br>int X[7]-(2,-5,1,-3,-6,9,7);<br>for (int i=0; i<7;i++){<br>if (X[i]<0) cout<<X[i]<<'\t';<br>7<br>getch ();<br>getch ();<br>#include<iostream.h><br>#include<conio.h><br>main ()<br>#include<iostream.h><br>#include<conio.h><br>main ()<br>int X[7]={2,-5,1,-3,-6,9,7}, C=0;<br>for (int i-0;i<7;i++) {<br>if (X[i]>0) C++;<br>int X[7]=(2,-5,1,-3,-6,9,7), S=0;<br>for (int i=0;i<7;i++) {<br>if (X[i]<0) S+=x[i];<br>8<br>9<br>cout<< C;<br>getch ();<br>cout<< S;<br>getch ();<br>Page 4 of 5<br>#include<iostream.h><br>#include<conio.h><br>main ()<br>{<br>int X[7]={2,0,1,-3,-6,0,7}, C=0;<br>for (int i=0;i<7;i++){<br>if (X[i]!=0) C++;<br>10<br>cout<< C;<br>getch ();<br>

Extracted text: Q.4) What is the function of the following C++ Programs? Part A #include #include main () #include tinclude main () int X(7]={2,5,1,3,6,9,7}, S=0; for (int i-0;i<7;i++) {="" s="S+X[i];" int="" x[7]="(2,5,1,3,6,9," 7),="" c="0;" for="" (int=""><7;i++) (="" if="" (x[i]2="=1)" c++;="" 2="">
tinclude #include #include main () main () int X[7)-(2,5,1,3,6,9,7}, S=0; for (int i=0;i<7;i++){ if="" (x[i]%2="=0)" st="X[i];" int="" x[7]="{2,5,1,3,6,9,7}," s="0;" for="" (int="" i=""><7;i++) {="" if="" (x[i]="">=5) S+=X[i]; 3 4 cout< s;="">< s;="" getch="" ();="" getch="" ();=""> tinclude main () int X[7]={2,5,1,3,6,9,7}; for (int i=0;i<7;i++){ if="" (x[i]="">=5) cout<><'\t'; getch="" ();="" part="" b=""> include main () #include #include main () int X[7]=(2,5,1,3,6,9,7}; for (int i=0;i<7;i++){ if=""><6)><><'\t'; int="" x[7]-(2,-5,1,-3,-6,9,7);="" for="" (int="" i="0;"><7;i++){ if=""><0)><><'\t'; 7="" getch="" ();="" getch="" ();=""> #include main () #include #include main () int X[7]={2,-5,1,-3,-6,9,7}, C=0; for (int i-0;i<7;i++) {="" if="" (x[i]="">0) C++; int X[7]=(2,-5,1,-3,-6,9,7), S=0; for (int i=0;i<7;i++) {="" if=""><0) s+="x[i];" 8="" 9="">< c;="" getch="" ();="">< s;="" getch="" ();="" page="" 4="" of="" 5=""> #include main () { int X[7]={2,0,1,-3,-6,0,7}, C=0; for (int i=0;i<7;i++){ if="" (x[i]!="0)" c++;="" 10="">< c;="" getch="">


Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here