No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi....can anyone help me to explain what is the use of isPrime=true; in the last line of this coding..?? I found that it is very important because if i delete it, the answer of the prime number will always constantly 2 and 3.. Even if i put 7 as the … |
|
Hi...there,,can anyone debugging my code.. this program intend to find the average and count how many numbers is positif and negatif from 10 numbers entered by user. My problem is when i run the program the result of average is correct but somehow on the result of negatif and positif … |
|
Hi..can anyone help me..debugging my codes.. when i compile and run it.. i dont get the accurate result..of sum and avg..can anyone help me telling where is the error?? thanks so much.... Here are the codes: #include <iostream> void getNum(int& num,int& sum); void doProcess(int num, int& sum, float& avg); void … |