I have to create a payroll program

I'm building a payroll program for school that prompts the user for several inputs, one of them being the hours worked for five days, inputted with spaces. Do I have to create an array for this, or can I use (cin,AndsumHrs). These hours will me added together and multiplied with an hourly wage.
You can do with spaces, it will probably be easier.
1
2
3
4
5
6
7
8
9
10
11
int a; 
int b;
int c;
int d;
int e;


cout<<"Enter hours:"<<endl;
cin>>a>>b>>c>>d>>e;



We were on the same page. Already figured it out, but thanks for the reply :')
Topic archived. No new replies allowed.