This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
main() | |
{ | |
int numeros[1000]; | |
int total=0; | |
int i; | |
printf("Introduzca 8 números: "); | |
for (i=0; i<8; i++){ | |
scanf("%d", &numeros[i]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
main() | |
{ | |
int numero; | |
int residuo; | |
printf("Introduzca un número: "); | |
scanf("%d", &numero); | |
residuo = numero % 2; | |
printf("El residuo de %d es %d\n", numero,residuo); | |
if (residuo > 0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Programa que monitorea 1 sensor SHARP de proximidad y 4 sensores de presión. | |
* Cuando recibe un dato serial, revisa que tenga las tramas de un mensaje Dynamixel. | |
* Si además la dirección y el tipo de mensaje es correcto, devuelve en formato Dynamixel | |
* el valor del sensor que se pidió o el valor del Centro de Masa | |
*/ | |
const byte idPlanta= 51; | |
const long velTransmision = 115200; | |
const int pinControl = 2; |
NewerOlder