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
~103 People Reached
Favorite Forums
Favorite Tags
c++ x 1
Member Avatar for elijah.gallien

#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"); }

Member Avatar for deceptikon
0
103