Skip to content

Instantly share code, notes, and snippets.

@leostera
Created September 10, 2011 18:26
Show Gist options
  • Save leostera/1208608 to your computer and use it in GitHub Desktop.
Save leostera/1208608 to your computer and use it in GitHub Desktop.
Problema vectores 4
#include "Vectores.h"
int main(int argc, char**argv)
{
printf("Se le pediran 25 numeros positivos, no se apresure e ingrese uno por vez: ");
int size=25;
int v[size];
leervector(size,v);
int i,j;
for(i=0; i<size; i++)
{
for(j=0; j<size; j++)
{
if( v[i] + v[j] == 25 )
{
printf("Los valores de la posicion %d y %d suman 25 -> %d + %d \n",i,j,v[i],v[j]);
}
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment