Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~5K People Reached
Favorite Forums
Favorite Tags
c++ x 2
Member Avatar for monroe85

#include <iostream> using namespace std; int main(){ double w,x,y,z,avg; cout <<" PLEASE ENTER FOUR ENTRIES OF MARKS"<<endl; cin >> w >> x >> y >> z; avg=((w+x+y+z)/4); if(avg>60){ cout <<"YOU PASS"<<endl;} else{ cout<<"YOU FAIL"<<endl; } cout<<"YOUR AVERAGE MARK IS "<<avg<< endl; return 0; }

Member Avatar for Necrolis
0
71
Member Avatar for Moporho

I have assignment and need help determining if I am correct. The question reads: a.Write a function that determines whether a number is prime b.use the function to determine and print out all prime numbers between 2 and 10,000. [B][U]How many numbers to you have to test before being sure …

Member Avatar for Moporho
0
5K