El documento contiene 10 programas en pseudocódigo que resuelven diferentes problemas matemáticos y despliegan resultados en pantalla. Los programas incluyen sumas, multiplicaciones, raíces cuadradas y expresiones algebraicas ingresadas por el usuario.
2. PROBLEMA 1: PSEUDOCÓDIGO QUE
INDICA A QUE GRUPO PERTENECES.
# Include <stdio.h>
#include <conio.h>
Main ()
{
Int grup
Clrscr ();
Printf (“¿De que grupo eres?”);
Scanf (“%;”, & grup);
Printf (“eres del grupo: %;” grup);
Getch ();
}
3. PROBLEMA 2: DESPLEGAR EN PANTALLA
EL VALOR DE PI.
# include <stdio. h>
# include <conio.h>
Main ()
{
Clrscr ();
Printf (“el valor de pi es: 3.1416”);
Getch ();
}
4. PROGRAMA 3: DESPLEGAR EN PANTALLA
UNA PORTADA.
# include <stdio.h>
# include <conio.h>
Main ()
{
Clrscr ();
Printf (“tt colegio de educación profesional
técnica nttt
Plantel Tlalnepantla 1 nn”);
Printf (“t alumno: nt Jocelyn Aileen ntn”);
Printf (“t grupo 202 n”);
Printf (“t Segundo semestre n);
Printf (“t informática 1 n”);
Printf (“t matricula: nt n”);
Getch ();
}
5. PROGRAMA 4: DESARROLLAR UN
PROGRAMA QUE DESPLIEGUE EN
PANTALLA EL VALOR CONTENIDO EN UNA
VARIABLE TIPO ENTERO OTORGADO EN LA
EJECUCION DEL PROGRAMA EL VALOR
SERA 202.
# include <stdio.h>
# include <conio.h>
Main ()
{
Int ele = 202;
Clrscr ();
Printf (“tttt grupo %d”, ele);
Getch ();
}
6. PROGRAMA 5: DESARROLLAR UN
PROGRAMA QUE DESPLIEGUE EN
PANTALLA UN NUMERO CUALQUIERA
OTORGADO POR EL USUARIO.
# Include <stdio.h>
# Include <conio.h>
Main ()
{
Int x=0;
Clrscr ();
Printf (“tttt programa nùmero 5”);
Printf (“nn digita un numero”);
Scanf (“%d” &x);
Printf (“n el numero dado es: %d”, x);
Getch ();
}
7. PROGRAMA 6: DESARROLLAR UN
PROGRAMA QUE PERMITA SUMAR 2
NUMEROS CUALQUIERA OTORGADOS,
CUYO RESULTADO SERA DESPLEGADO EN
PANTALLA.
# Include <stdio.h>
# Include <conio.h>
Main ()
{
Int s, r res;
Clrscr ();
Printf (“Digita un número: t”);
Scanf (“%d”, &s);
Printf (“digita tu numero: t”);
Scanf (“%d”, &s);
Res= s + r;
Printf (“El resultado de la suma es: n %d”, res);
getch ();
}
8. PROGRAMA 7: DESARROLLAR UN
PROGRAMA QUE SUME 2 NUMEROS
CUALQUIERA Y QUE DESPLIEGUE EN
PANTALLA LA OPERACIÓN REALIZADA
JUNTO CON EL RESULTADO.
# include <stdio.h>
#include <conio.h>
Main ()
{
Int num3, num5, res;
Clrscr ();
Printf (“Digita un numero: t”);
Scanf (“%d”, & núm. 3);
Printf (“digita otro numero: t”);
Scanf (“%d”, & num 5);
Res= num 3 + num 5;
Printf (“suma: %d + %d= %d”, num 3, num 5,
res);
Getch ();
}
9. PROGRAMA 8: DESARROLLAR UN
PROGRAMA QUE CALCULE Y DESPLIEGUE
EL DOBLE DE UN NUMERO CUALQUIERA.
# include <stdio.h>
# include <conio.h>
Main ()
{
Int , n;
Clrscr ();
Printf (“programa 8”);
=n=0;
Printf (“digita un valor”);
Scanf (“%d, &x);
Res= 2*&;
Printf (“el doble es: %d”, n);
Getch ();
}
10. PROGRAMA 9: DESARROLLAR UN PROGRAMA
QUE PERMITA CALCULAR Y DESPLEGAR EN
PANTALLA EL RESULTADO DE LA SIG.
EXPRESION ARITMETICA: X = a2 + b2
# include <stdio.h>
# include <conio.h>
Main ( )
{
Int a, b, c;
Float x;
Printf (“programa 9”);
a=b=c= x =0;
Printf (“digita el primer valor”);
Scanf (“%d”, &a);
Printf (“digita el segundo valor”);
Scanf (“%d”, &b);
Printf (“digita el tercer valor”);
Scanf (“%d”, &c);
x= ((a*a + b*b)/(c*c));
Printf (“el resultado es %f”, x);
Getch ( );
}
C2
11. PROGRAMA 10: DESARROLLAR UN
PROGRMA QUE DESPLIEGUE EN
PANTALLA EL RESULTADO DE a=1/2 x3 e3.
# include <stdio.h>
#include <conio.h>
Main ( )
{
Int x, y;
Float a;
a=x=y=0;
Clrscr ( );
Printf (“ttt programa 10 nnn”);
Printf (“escribe 2 números”);
Scanf (“%d”, &x);
Scanf (“%d”, &y);
a=0.5 *((x*x*x)*(y*y*y));
Printf (“el resultado de la expresión algebraica
es: %f”, a);
Getch ( );
}