Lenguaje C (segunda Parte)

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Lenguaje C (segunda Parte) as PDF for free.

More details

  • Words: 123
  • Pages: 2
ALBERTO DANIEL GARCIA NUÑEZ

UCOL

FACT. DE TELEMATICA 1G

ING. TELEMATICA

UNIVERSIDAD DE COLIMA FACULTAD DE TELEMATICA

INGENIERIA EN TELEMATICA

LENGUAJE C Alumno: NUÑEZ

1G

VISUAL

ALBERTO DANIEL GARCIA

Profesor: ROMAN GALLARDO ARMANDO 28/Noviembre/2008 LENGUAJE C

VISUAL

ALBERTO DANIEL GARCIA NUÑEZ

UCOL

FACT. DE TELEMATICA 1G

/*PRACTICA 8*/ #include<stdio.h> #include main() { clrscr (); int a[100]; int b,c; puts("Cuantos elementos"); scanf("%d",&b); for (c=1;c<=b;++c) { printf("Teclea el elemento numero %d\n",c); scanf("%d",&a[c]); } for (c=1;c<=b;++c) { printf("a[%d]=%d\n",c,a[c]); } getche(); return 0; } /*PRACTICA 9*/ #include<stdio.h> #include struct registro { char nombre[40]; char sexo; char edad; }; main() { clrscr (); struct registro r,r2; puts("Nombre"); gets(r.nombre); puts("Sexo"); r.sexo=getche(); puts("\nEdad"); scanf("%d",&r.edad); r2=r; printf("Nombre: %s\n",r2.nombre); printf("Edad: %d\n",r2.edad); printf("Sexo: %c\n",r2.sexo); getche(); return 0; } LENGUAJE C

VISUAL

ING. TELEMATICA

Related Documents

Lenguaje C (segunda Parte)
November 2019 28
Lenguaje C (primera Parte)
November 2019 15
Segunda Parte
November 2019 24
Lenguaje C
November 2019 14
Lenguaje C++
October 2019 17
Lenguaje C+++
December 2019 13