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 <iostream> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <fstream> | |
#include <cstdlib> | |
using namespace std; | |
//Suponiendo por predefinición | |
// 4 candidatos | |
// 3 ciudades - 450 a nivel nacional |
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 <iostream> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <fstream> | |
#include <cstdlib> | |
using namespace std; | |
//Suponiendo por predefinición | |
// 4 candidatos | |
// 3 ciudades - 450 a nivel nacional |
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 <iostream> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <fstream> | |
#include <cstdlib> | |
using namespace std; | |
typedef struct Producto{ | |
int codigo; | |
float precio; |
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
#lang racket | |
(display "PROGRAMA PARA CALCULAR RAICES") | |
;;-------------------------------------- | |
(define (leer h) | |
(display h) | |
(read)) | |
;;-------------------------------------- | |
(define (raizcuadrada numero) | |
(define x 0.00001) | |
(define r x) |
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 <iostream> | |
using namespace std; | |
double raiz_cuadrada(double numero,double aproximacion, int n); //Nuestra función de raiz cuadrada | |
double raiz_cuadrada(double numero); //Nuestra función creada únicamente para iniciar la llamada | |
int main() | |
{ | |
int numero=0; | |
cout<<"Ingrese un numero"; |
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
for i in range(0,1): | |
print("Ingrese el valor de arancel") | |
arancel=input() | |
if arancel>=0: | |
print("El nuevo valor es:") | |
arancel-(arancel/20) | |
else: | |
print("El valor ingresado no es válido. Intente con un número entero positivo") | |
for i in range(0,1): | |
print("INTENTO #2 y final: Ingrese el valor de arancel.") |
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
#Problema Diez | |
print(" ") | |
print(" ") | |
n=input("Ingrese termino n hasta donde desea sumar la serie: ") | |
m=0 | |
for p in range(n): | |
m=(1/(2*float(n)))+float(m) | |
n-=1 | |
print("Valor: ",m) |
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
#Boa:Frame:Frame1 | |
import wx | |
def create(parent): | |
return Frame1(parent) | |
[wxID_FRAME1, wxID_FRAME1CALCULAR, wxID_FRAME1COSTOSMS, | |
wxID_FRAME1COSTOSMSTXT, wxID_FRAME1DISPLAYCOSTOSMS, wxID_FRAME1LIMPIAR, | |
wxID_FRAME1SMS, wxID_FRAME1TERMINAR, |
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
#Boa:Frame:Ventana | |
import wx | |
def create(parent): | |
return Ventana(parent) | |
[wxID_VENTANA, wxID_VENTANABTCALCULAR, wxID_VENTANABTLIMPIAR, | |
wxID_VENTANABTSALIR, wxID_VENTANASTDISPLAY, wxID_VENTANASTVALORSMS, | |
wxID_VENTANATCTEXTOSMS, wxID_VENTANATCVALORSMS, |
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
i= raw_input("Ingrese Nombre: ") | |
j= input("Ingrese edad: ") | |
print 'Edad de',i,' : ',j |
OlderNewer