This is my first post. I am stuck with an assignment requesting me to print an output in the format example of which looks like this:
2:4;5:6
i.i the code that I have to do, needs to count the number of twos and fives in a array and output it like the above. The lecturer had barely even covered programming and did not go into this area.
I was trying to use the cout<<2:4;5:6<<endl
Obviously it is wrong, but I have not even the slightest clue on how to do this. Is anyone willing to help here?