TOPIC

Why the value is not counting ? help me

supermanshuvo asked 5 years ago

include

include

using namespace std;

int main(){ int i,Num,value; for(i=0;i<5;i++){ cin>>Num; if (Num%2 == 0 ){ value++; } } cout<<value<<" valores pares"<<endl; return 0; }

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.