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
Ranked #107.41K
#include<fstream> using namespace std; main() { ifstream infile; ofstream outfile; int num, pcount=0; infile.open("numbers2.txt"); outfile.open("evennumbers.txt"); for(int count=0, count<20; count++) { infile>>num; if(num%2=0); pcount++ } outfile<<"number of positive num is "<<endl; infile.close(); outfile.close(); system("pause"); } |