Tarea 4 Programacion 1 Uapa Rgr

  • Uploaded by: Roberto Guzman
  • 0
  • 0
  • February 2021
  • 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 Tarea 4 Programacion 1 Uapa Rgr as PDF for free.

More details

  • Words: 249
  • Pages: 3
Loading documents preview...
UNIVERSIDAD ABIERTA PARA ADULTOS Asignatura:

Programación I Tema:

Actividad de Estudio Independiente del Tema IV Facilitador:

Geury Guzman Participante:

XXXX XXX Fecha:

26 noviembre, 2018

Saludos distinguido Participantes: 1) Realiza un programa en lenguaje C, que genere los numero del 1 al 5 en positivo y negativo. El código es el siguiente: // Programa para hacer sucesiones de números positivos y negativos #include #include <stdio.h> int main() { int num; printf( "\n " ); for ( num = 1 ; num <= 5 ; num++ ) { printf( "%d %d ", num, -num ); } getch(); /* Pausa */ return 0; } 2) Selecciona uno de los ciclos repetitivos (For, While, o Do While) crea un programa en lenguaje C, que determine la tabla de multiplicación de un numero dado. Puedes consultar el link Ciclos Repetitivos, en caso de ser necesario. El código es el siguiente: // Programa para generar la Tabla de Multiplicar de un Número dado #include <stdio.h> int main() { char continuar; int t, num; do { printf( "\n Digite Numero de Tabla a Generar: ", 170 ); scanf( "%d", &num );

printf( "\n La tabla de multiplicar del %d es:\n", num );

for ( t = 1 ; t <= 10 ; t++ ) printf( "\n %d * %d = %d", t, num, t * num );

printf( "\n\n %cDesea Generar otra tabla (s/n)?: ", 170 ); fflush( stdin ); scanf( "%c", &continuar ); } while ( continuar != 'n' ); return 0; }

Related Documents

Programacion 1 Tarea 4
February 2021 3
Tarea 4 De Programacion
February 2021 2
Tarea De Fisica 1 Uapa
January 2021 2
Programacion 1 Tarea 9
February 2021 1

More Documents from ""

January 2021 1
February 2021 2
February 2021 2