0
How to declare marks from the user ?
I want to write the marks of the subjects from the user so how can I do that ?
6 Respostas
+ 9
What language?
+ 7
So you just declare the same amount of variables as the number of subjects and have the user input it. (Or you can use arrays)
int cplusplus, ruby, java;
cout << "Please input some marks";
cin >> cplusplus;
cin >> ruby;
cin >> java;
+ 5
Sounds very similar to a homework assignment I have seen mentioned here on more than one occasion. 😀
If you can you should do a search on the forums or in codeplayground and you may just find exactly what you need
+ 5
@Calvin: Pretty sure it is c++
+ 3
I guess he might look for way to declare a array holding marks.
Different languages has different declaration, what language you use?
+ 1
I'm using c++