Vectors, insertion of numbers

for inserting a number n, p times write as p,n.
for inserting p numbers, write as n1, n2, …, np.
for inserting only two numbers, insert the numbers one at a time??
Or is there any other method for inserting only two numbers at a time?

Check how to insert in vector from these threads:


Mark the doubt as resolved if you are satisfied.