Programacion

Solo disponible en BuenasTareas
  • Páginas : 9 (2044 palabras )
  • Descarga(s) : 0
  • Publicado : 3 de junio de 2011
Leer documento completo
Vista previa del texto
INSTITUTO POLITECNICO NACIONAL
ESIA ZACATENCO
“programas 3°PARCIAL”

PROF: Norma Lilia Pimentel cervantes

ALUMNO: Juan Carlos Vázquez García

Materia: programación

Semestre: Segundo

Grupo: 2cv8

TURNO: VESPERTINO



INDICEPAG
1.-programa hola……………………………........................3
2.-programa con mi nombre…………….……………………….4
3.- programa fuego intenso……….…………………………..5
4.-programa de gráficos 1…………….……………………….9
5.-programa de gráficos 2………………………………………..10
6.-programade graficos 3……….…………………………….11
7.-programa de graficos 4…………………………………………12
8.-programa de graficos 5…………………………………….13
9.-programa de graficos 6…………..………………………..14
10.-programa comando array…………………………………………15
11.-programacon mi nombre de array………………………………16
12.-programa de malloc y calloc………………………….17“PROGRAMA HOLA”

//vazquez garcia juan carlos//
#include<conio.h>
#include<stdio.h>
#include<dos.h>
main()
{
clrscr();
//x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*
//*x*x*x*x**x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x**x*
int x,y;
x=1;y=1;
for (x=1;x<=70;x++)
{ delay(10);gotoxy(x,1);printf("&");}
for (y=1;y<=20;y++)
{delay(10);gotoxy(70,y);printf("&");}
for (x=70;x>=1;x--)
{ delay(10);gotoxy(x,20);printf("&");}
for (y=20;y>=1;y--)
{ delay(10);gotoxy(1,y);printf("&");}
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
//Mensaje a escribir......
x=10;y=10;
for(y=10;y<=18;y++)
{delay(10);gotoxy(10,y);printf("*");}
x=10;y=14;for(x=10;x<=15;x++)
{delay(10);gotoxy(x,y);printf("*");}
x=15;y=10;
for(y=10;y<=18;y++)
{delay(10);gotoxy(15,y);printf("*");}
x=18;y=10;
for(y=10;y<=18;y++)
{delay(10);gotoxy(18,y);printf("*");}
x=18;y=18;
for(x=18;x<=23;x++)
{delay(10);gotoxy(x,18);printf("*");}
x=23;y=18;
for(y=18;y>=10;y--)
{delay(10);gotoxy(23,y);printf("*");}
x=23;y=10;
for(x=23;x>=18;x--){delay(10);gotoxy(x,10);printf("*");}
x=26;y=10;
for(y=10;y<=18;y++)
{delay(10);gotoxy(26,y);printf("*");}
x=26;y=18;
for(x=26;x<=31;x++)
{delay(10);gotoxy(x,18);printf("*");}
x=34;y=18;
for(y=18;y>=10;y--)
{delay(10);gotoxy(34,y);printf("*");}
x=34;y=10;
for(x=34;x<=39;x++)
{delay(10);gotoxy(x,10);printf("*");}
x=39;y=10;
for(y=10;y<=18;y++)
{delay(10);gotoxy(39,y);printf("*");}x=34;y=14;
for(x=34;x<=38;x++)
{delay(10);gotoxy(x,y);printf("*");}
///...xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
//xxxxxxx*x*x*x*x**x**x*x**x**x*x**x*x*x**x**x*x**
getch();
return 0;
}















“PROGRAMA CON MI NOMBRE”
//juan carlos vazquez garcia//
#include<conio.h>
#include<stdio.h>
#include<dos.h>
main(){
clrscr();
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
int x,y;
x=1;y=1;
for (x=1;x<=70;x++)
{ delay(10);gotoxy(x,1);printf("*");}
for (y=1;y<=20;y++)
{ delay(10);gotoxy(70,y);printf("*");}
for (x=70;x>=1;x--)
{ delay(10);gotoxy(x,20);printf("*");}
for (y=20;y>=1;y--)
{delay(10);gotoxy(1,y);printf("*");}
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
//Mensaje a escribir......
x=15;y=10;
for(y=10;y<=18;y++)
{delay(10);gotoxy(15,y);printf("*");}
x=10;y=18;
for(x=10;x<=15;x++)
{delay(10);gotoxy(x,18);printf("*");}
x=18;y=10;
for(y=10;y<=18;y++)
{delay(10);gotoxy(18,y);printf("*");}
x=18;y=18;...
tracking img