Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Introducción a la Programación en Visual C# (C Sharp)

16,556 views

Published on

Introducción a la Programación en Visual C# (C Sharp)

Conociendo la estructura básica de un programa en C#, y uso de los tipos de datos en proyectos de tipo consola.

La estructura básica de un programa en C#, ¿Qué es una variable?, Tipos de datos,Declaración de datos enteros, Conversiones de tipos de datos,Ejemplo Usando Tipos de Datos, Ejemplo de Suma de Dos Variables, Ejemplo Usando Sentencia If-Else, Ejemplo Usando Sentencia For, Ejemplo Usando Sentencia While, EJERCICIOS PARA RESOLVER.

  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Introducción a la Programación en Visual C# (C Sharp)

  1. 1. Programación en Microsoft Visual C# Contenido La estructura básica de un programa en C#................................................................................ 2 ¿Qué es una variable? .................................................................................................................... 3 Tipos de datos................................................................................................................................... 3 Declaración de datos enteros:........................................................................................................ 3 Conversiones de tipos de datos..................................................................................................... 4 EJEMPLOS ....................................................................................................................................... 6 Ejemplo Usando Tipos de Datos...................................................................................................... 6 Ejemplo de Suma de Dos Variables................................................................................................. 6 Ejemplo Usando Sentencia If-Else................................................................................................... 7 Ejemplo Usando Sentencia For ....................................................................................................... 8 Ejemplo Usando Sentencia While ................................................................................................... 8 EJERCICIOS PARA RESOLVER.................................................................................................. 9 Introducción a la Programación en Visual C# (C Sharp)
  2. 2. Programación en Microsoft Visual C# La estructura básica de un programa en C# using System; using System.Collections.Generic; using System.Text; namespace programa1 //se define espacio de nombre { class Program { static void Main(string[] args) //comienzo del programa { Console.writeline(“PRIMER PROGRAMA!”); } } } EXPLICACIÓN: using System: La directiva using System nos permitirá usar miembros de este espacio de nombres sin poner la palabra System delante. Si no se escribe esto sería necesario escribir la instrucción: System.Console.WriteLine("PRIMER PROGRAMA!"); Un namespace (espacio de nombres): Constituye una forma lógica de organizar y estructura nuestro código de forma que podamos organizar la funcionalidad con un determinado sentido semántico. Ejemplos de namespace presentes en el framework son por ejemplo el (namespace System) que contiene la funcionalidad básica del framework, el (namespace System.Collections) que contiene los tipos de datos de colecciones (ArrayList, Listas Enlazadas) o el (namespace System.Collections.Generic) que contiene los tipos de datos de colecciones que usan el nuevo sistema de genericos de .NET 2.0. Console: Es una clase que no existe en el espacio de nombres global, sino en el espacio de nombres System. Write: Es un método de la clase Consola, que sirve para imprimir en la pantalla el mensaje que deseemos, en este caso “Hola Mundo”.
  3. 3. Programación en Microsoft Visual C# ¿Qué es una variable? Una variable representa un valor que puede ser numérico, una cadena de caracteres, un valor booleano o doublé, cada uno de estos tipos de datos se pueden almacenar en diferentes variables, entiéndase por variable a la representación genérica de un tipo de dato en particular, generalmente las variables tienen relación con el dato que se desea ingresar. Tipos de datos Los tipos de datos básicos son los siguientes: String Representa una cadena de caracteres. Int Representa un entero sin decimal. Float Representa un numero con parte decimal o en coma flotante de 32 bits. Boolean Representa un valor lógico. Double Representa un valor numérico en coma flotante de 64 bits. Objetc Representa un objeto. Sintaxis: Como declarar una variable con tipo de dato String: SINTAXIS: String <variable>; Ejemplos: String nombre; String apellido; String sexo; String estado_civil; Declaración de datos enteros: int <variable>; Veamos el ejemplo anterior le añadiremos un atributo más el cual será la edad, entonces nos quedaría así: int edad;
  4. 4. Programación en Microsoft Visual C# Declaración de datos flotantes Float <variable>; float es un tipo de dato con coma flotante: float sueldo; Declaración de datos booleanos Boolean <variable>; El tipo de dato boolean representa una variable que almacenara un valor lógico, se usa generalmente para realizar comparaciones o para asignar atributos de True o False a los objetos. Declaración de datos flotantes dobles Double <variable>; Representa un valor numérico en coma flotante de 64 bits, se usa generalmente para cuando se ingresan valores que sobrepasan la escala de valores de 32 bits. Declaración de datos tipo objeto Objetc objeto; Representa un objeto, el objeto puede ser cualquier elemento del mundo real. Si queremos poner un objeto en una variable instanciaremos así: Objetc Persona; Persona representa un conjunto de atributos. Nota: Generalmente las variables se inicializan a través de un constructor, con valor inicial en 0; Conversiones de tipos de datos La conversión de datos se usa en C# de manera explícita, En c# siempre se ingresan todos los valores con formato texto por lo que se hace necesaria la conversión de tipos, ejemplo:
  5. 5. Programación en Microsoft Visual C# Vamos a ingresar 2 valores numéricos en formato texto, entonces la declaración seria así: String n1,n2; Declaramos los valores iniciales con formato texto. Si queremos realizar una suma, tendríamos que declarar una variable de resultado para almacenar el valor veamos: String suma; suma = n1+n2; Si por ejemplo ingresamos 2 valores para realizar dicho calculo: suma = 2+3; Si se realiza este proceso entonces el resultado seria 23, suma=2+3=23, pero eso no es un dato real, vemos entonces vemos que los valores en vez de sumarse se concatenaron, pero si por el contrario hacemos lo siguiente: int suma; suma=int.parse(n1)+int.parse(n2); Ingresamos los mismos valores entonces el resultado nos daría asi: 2+3=5 por lo que suma captura el valor de 5 de la misma manera seria para convertir los otros tipos siempre partiendo de una cadena de texto o String.
  6. 6. Programación en Microsoft Visual C# EJEMPLOS Ejemplo Usando Tipos de Datos using System; public class Empezando { public static void Main () { string cadena = "hola"; int entero = 7; double real = 0.2; bool booleana = true; Console.WriteLine ("definición de varias variables, de varios tipos..."); Console.WriteLine ("cadena={0}", cadena ); Console.WriteLine ("entero={0}", entero ); Console.WriteLine ("booleana={0}", booleana ); Console.WriteLine ("real={0}", real ); } } Ejemplo de Suma de Dos Variables int a; int b; int suma; Console.WriteLine("Ingrese el primer numero a sumar"); a = int.Parse(Console.ReadLine()); Console.WriteLine("Ingrese el segundo numero a sumar"); b = int.Parse(Console.ReadLine()); suma = a + b; Console.WriteLine("La suma es: " + suma); Console.ReadLine(); //Pausa para ver el resultado
  7. 7. Programación en Microsoft Visual C# Nota: cuando se captura datos por medio de ReadLine, los datos son de tipo String, por lo Que tenemos que convertir esos datos a números, para ello se hace uso de parse. Ejemplo Usando Sentencia If-Else int a; int b; int i; //uso del IF Console.WriteLine("**********Ejemplo de IF**********"); Console.WriteLine("-Pide dos números enteros y los compara"); //ingreso de datos Console.WriteLine("Ingrese el primer número entero"); a = int.Parse(Console.ReadLine()); Console.WriteLine("Ingrese el segundo numero entero"); b = int.Parse(Console.ReadLine()); //estructura if if (a >= b) { Console.WriteLine("A,{0} es mayor que B,{1}", a, b); } else { Console.WriteLine("B,{1} es mayor que A,{0}", a, b); } Console.Read();
  8. 8. Programación en Microsoft Visual C# Ejemplo Usando Sentencia For Console.WriteLine("**********Ejemplo de FOR**********"); Console.WriteLine("Imprime numeros de 1 hasta 10"); for (i = 1; i <= 11; i++) Console.WriteLine(i); Console.Read(); Ejemplo Usando Sentencia While Console.WriteLine("**********Ejemplo de WHILE**********"); Console.WriteLine("Imprime numeros de 1 hasta 10"); i=1; while(i <11) { Console.WriteLine(i); i++; } Console.ReadLine();
  9. 9. Programación en Microsoft Visual C# EJERCICIOS PARA RESOLVER Desarrolle un programa para lograr lo que se pide en cada uno de los siguientes enunciados, use visual C# específicamente el tipo de proyecto en consola. Se tiene como objetivo fortalecer lo aprendido en esta guía sobre variables, operadores, tipos de datos y estructuras de control. Hacer un código para imprimir los primeros 100 números pares Perímetro y superficie de un circulo Leer 3 notas y calcular el promedio, además enviar mensaje si aprobó o no. nota de aprobación es 7.0 Calcular el sueldo quincenal, tomando en cuenta los siguientes parámetros: $ 450.000 por quincena Bono de 10% de profesionalización a los que tienen título universitario Bono quincenal de transporte de $ 70.000 Bono de alimentación de $ 5.000 por día laborado Deducciones: 2% Seguro Colectivo 1% Paro Forzoso 2% Seguro Social 2% Caja de Ahorro Diseñar un programa que permita calcular la hipotenusa en un triángulo rectángulo. Calcular las Raíces de una ecuación de segundo grado. Obtenga el mayor valor de tres números enteros ingresados por teclado.
  10. 10. Programación en Microsoft Visual C# En un triángulo rectángulo, conocidos uno de sus lados y la hipotenusa, obtenga el valor del otro lado. Obtener el cuadrado de un número ingresado por teclado y si el resultado es mayor a 49 entonces imprimir resultado fuera de rango. Cuanto hay que pagar por una llamada telefónica, si los tres 3 primeros minutos se pagan a $0.10 y si el tiempo de la llamada es superior a diez minutos se descontara el 20% de la llamada. El pago normal después de los 3 minutos es de $0.15. Escribir un programa que permita emitir la FACTURA correspondiente, a una compra de un Artículo determinado, del que se adquieren una o varias Unidades. El IVA a aplicar es de 13% y si el Sub Total (precio de venta por cantidad), es Mayor de 1000, se aplicará un descuento del 15%. Se desea calcular de forma Independiente, la suma de los números pares e impares de los números comprendidos del 1 al 200. Sumar los 100 primeros números naturales. Diseñar un programa que sume y cuente los múltiplos de dos, del 1 al 200. Calcular el promedio de 100 números impares. Dados dos (2) números enteros ingresados por teclado, indique si uno es múltiplo del otro. Calcular el producto de los números positivos comprendidos desde el -500 hasta el 2000, ambos inclusive.

×