Skip to content

Instantly share code, notes, and snippets.

View javier-lopez's full-sized avatar
🏠
Working from home

Javier López javier-lopez

🏠
Working from home
View GitHub Profile
#basic bash completion for android utilities
have android && {
_android()
{
#When the function or command is invoked, the first argument is the name of
#the command whose arguments are being completed, the second argument is the
#word being completed, and the third argument is the word preceding the word
#being completed on the current command line.
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char const* argv[])
{
int num=0;
printf("Introduzca el num de elementos a sumar: ");
scanf("%d", &num);
#include <stdio.h>
/*#pragma hdrstop*/
#include <string.h>
#include <stdlib.h>
//---------------------------------------------------------------------------
/*#pragma argsused*/
int main(int argc, char *argv[])
{
int contador, n=0;
#include <stdio.h>
#include <math.h>
/*#pragma hdrstop*/
#include <string.h>
#include <stdlib.h>
//---------------------------------------------------------------------------
/*pi/6 = raiz(3)/3 * ( 1 (1*3^0) - 1(3 * 3^1) + 1(5 * 3^2) */
/*#pragma argsused*/
//---------------------------------------------------------------------------
#include <stdio.h>
/*#pragma hdrstop*/
#include <string.h>
#include <stdlib.h>
#include <math.h>
/*#pragma argsused*/
int main(int argc, char *argv[])
//---------------------------------------------------------------------------
#include <stdio.h>
/*#pragma hdrstop*/
#include <string.h>
#include <stdlib.h>
#include <math.h>
/*#pragma argsused*/
int main(int argc, char *argv[])
//---------------------------------------------------------------------------
#include <stdio.h>
/*#pragma hdrstop*/
#include <string.h>
#include <stdlib.h>
#include <math.h>
/*#pragma argsused*/
int main(int argc, char *argv[])
int moda_fun (float numeros[], int cantidad)
{
int i,j;
float tmp[cantidad], tmp_[cantidad], moda=0, *max;
for (i = 0; i < cantidad; i++)
{
tmp[i]=0; //se limpian las variables
tmp_[i]=0;
}
for (i = 0; i < cantidad+1; i++)
/**********************************************************************
* P.L. Francisco Javier <fco.plj@gmail.com> 210368224
*********************************************************************/
#include <stdio.h> /* printf, scanf, fflush, getchar, etc */
#include <stdlib.h> /* system, rand, exit, qsort*/
#include <math.h> /* sqrt, -lm */
#ifdef _WIN32
#include <windows.h>
#include <conio.h>
/**********************************************************************
* P.L. Francisco Javier <fco.plj@gmail.com> 210368224
*********************************************************************/
#include <stdio.h> /* printf, scanf, fflush, getchar, etc */
#include <stdlib.h> /* system, rand, exit, qsort*/
#include <math.h> /* sqrt, -lm */
#ifdef _WIN32
#include <windows.h>
#include <conio.h>