Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/12/2007, 11:53
mawster
 
Fecha de Ingreso: noviembre-2004
Mensajes: 149
Antigüedad: 20 años, 3 meses
Puntos: 0
Re: Volver Atras.

he intentado hacerlo en C(que es como yo programo )pero como que no me sale.
ahi va el codigo de prueba que he hecho:
Código:
#include <stdio.h>

int menu(){
	int opcio;
	printf("1.Distancia\n0.Sortir\n");
	scanf("%d",&opcio);
	return opcio;
}
suma(){
	int a,b,resultat;
	a=3,b=7;
	resultat=a+b;
	printf("%d",&resultat);
}
sortir(){
	int i;
	for(i = 0; i < 40 ; i--)
	{
		printf("Gracis");
	}
}
int main(){
	int opcio;
	opcio=menu();
	switch(opcio){
	case 0:
		sortir();
		break;
	case 1:
suma();
break;
	}
	return 0;
}
__________________
¨`~*'¤^v-¥-()->»[: "3£ 1NƒîêRNø Nø ê$ UN Må£ £UGåR" :]«<-()-¥-v^¤'*~´¨