if i have 4 intergers for example :
1378 2496 3587 5389
how can i use the modulus operator to disect them so i can get the first number of each integer
what i mean is how can i take 1 form 1378 and 2 from 2496 etc...
Take the first integer number 1378%10==8(do something) now divide by 10 and you have 137(integer division)
137%10=7(do something) now divide 137 by 10 and you have 13.
13%10 = 3(do something) now divide by 10 and you have 1.
Put the above in a loop and when you isolate each individual digit call a function to carry out each simple calculation.
If you place these results in a container such as a vector or even an array element  would be contestant 1, element  would be contestant 2. ... and son. It would then be a simple task to print the five individual results and that of the winner.
int Value = 137;
if(Value < 100 || Value > 999)
int First = 0;
int Second = 0;
int Third = 0;
Value -= (Third = (Value % 10) / 1);
Value -= (Second = (Value % 100) / 10);
Value -= (First = (Value % 1000) / 100);
here is what i get at first but the instructor told me the number should be inmputs ...and i should use modulus :
# include <iostream>
using namespace std;
int c=1; // candidate number
int a,b,d,s; // a:grade for beauty b:grade for elegance d: grade for education s:result for candidates
cout<<"enter the grade for beauty:";
cout<<"enter the grade for elgance:";
cout<<"enter the grade for education:";
cout<<"result of the candidate is\t"<<s<<endl;
cout<<"candidate\t"<<winner<<" \t win with score of "<<max_result<<endl;