Basic - POR FAVOR NECESITO EJEMPLOS DE DO WHILE

 
Vista:

POR FAVOR NECESITO EJEMPLOS DE DO WHILE

Publicado por MARTHA (1 intervención) el 06/03/2008 16:14:44
hOLA:
SABEN NECESITO EJEMPLOS DE DO WHILE TENGO UN EXAMEN Y NO TENGO NINGUNO PARA VER CUALES SON LOS TIPOS DE SOLUCION QUE SE LES DA A ESTOS AH LOS EJEMPLOS CON SUS RESPECTIVAS SOLUCION ...
GRACIAS
MARTHA
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:POR FAVOR NECESITO EJEMPLOS DE DO WHILE

Publicado por TONY (2 intervenciones) el 25/09/2008 07:18:01
#include stdio.h>
#include stdlib.h>
main ( )
{
int n, contar = 1;
float x, promedio, suma = 0;
printf ("Cuantos numeros?: ");
scanf ("%d",&n);
do {
printf("x= ");
scanf ("%f", &x);
suma +=x;
++contar;
} while (contar <= n);
promedio = suma/n;
printf (" El promedio es: %.2f ",promedio);
system(“pause”);
return 0;
}
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:POR FAVOR NECESITO EJEMPLOS DE DO WHILE

Publicado por TONY (2 intervenciones) el 25/09/2008 07:19:02
#include stdio.h>
#include stdlib.h>
main ( )
{
int n, contar = 1;
float x, promedio, suma = 0;
printf ("Cuantos numeros?: ");
scanf ("%d",&n);
do {
printf("x= ");
scanf ("%f", &x);
suma +=x;
++contar;
} while (contar <= n);
promedio = suma/n;
printf (" El promedio es: %.2f ",promedio);
system(“pause”);
return 0;
}
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:POR FAVOR NECESITO EJEMPLOS DE DO WHILE

Publicado por david (1 intervención) el 15/08/2009 02:02:40
Se ingresa por teclado 2 numeros, con esta informacion se desea hallar los numeros enteros que se encuentran entre ellos. Utilizar la funcion do while
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar