If I'm not mistaken u can't do that but u can go in your settings if u have an iPhone and add that email with your main one.
Int main(void){
int n,s=0;
while(1){
scanf(" %d",&n);
if(n<0) break;
s+=n;
}
printf("sum=%d\n",s);
return 0;
}
Answer:
This program is written in C++. The explanation of the code is given below in the explanation section.
Explanation:
#include <iostream>
using namespace std;
//factorial calculation
int fact(int n) {
if (n == 0 || n == 1)
return 1;
else
return n * fact(n - 1);
}
int main() {
int n, r, comb; /* n represent number of people (population), r represent the number of selection from population and combination represent number of ways or combination */
cout<<"Enter n : ";// prompt user to enter population i.e. total number of people
cin>>n;//store into n
cout<<"\nEnter r : ";//prompt user to enter number of selection from population
cin>>r;
comb = fact(n) / (fact(r) * fact(n-r));// calcuate combination- number of differnt ways to form a committe
cout << "\nCombination : " << comb; //show the result
return 0;
}
Answer:
i dont know if this help but To do this, we will use a 'for loop'. The “for loop” allows the programmer to call a section of code repeatedly within a range of values. The range() function will return integer values depending on the arguments.
Explanation:
Answer:
CPU failure
Explanation:
CPU is what runs the computer which if the CPU is broken the computer will not start