How do you include 3 numbers at the beginning of this vector without affecting the previous numbers?
I'm trying to do this:
int main()
{
int v[30];
int i,x;
for(i=0; i < 15; i++)
{
printf("Digite 15 numeros");
scanf("%d", &v[i]);
}
for(v[i+3] = v[i]; i < 18; i++)
{
printf("Digite Mais 3 Numeros");
scanf("%d", &v[i]);
}
for(i=0; i < 15; i++)
{
printf("%d\n", v[i+3]);
}
}
But when presenting it, remove the first 3 numbers and put the 3 new numbers at the end.