I am currently learning how to code , can anyone show me a reference or example
ID: 3604091 • Letter: I
Question
I am currently learning how to code , can anyone show me a reference or example of a code that
1. Creates a text file with the persons name and stores anything typed.
2. The Program must read from this stored data the even and odd digits but there can be letters in this code too,
it can't be just for integers.
3. It should tell you how many and which odd and even digits there were or tell you that there were none.
I am currently learning voids so it would be helpful if anyone knew any examples using this method.
for example like "void checkOddnumbers"
Explanation / Answer
if (n%2==1)
cout<<"Number of Odd: "<<endl;
else
cout<<"Number of Even: "<<endl;
}
}
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.