martes, 3 de noviembre de 2009

PRACTICAS 8

PRACTICA 8.1 CONSOLA
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PRACTICA_8._1_CONSOLA
{
class Program
{
static void Main(string[] args)
{
int[] temp = new int[8];
int suma = 0, I,P ;
Console.WriteLine("Introduzca los siguentes elementos:");
for (I = 0; I < suma =" temp[I];" p =" suma" i="0;" promedio="{0}" href="http://1.bp.blogspot.com/_WLPe6A5WmEw/SvJtN2Z53OI/AAAAAAAAAcY/rtgr2W3c2W4/s1600-h/CONSOLA+8.1.bmp">

PRACTICA 8.2 A CONSOLA

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PRACTICA_8._2_CONSOLA
{
class Program
{
static void Main(string[] args)
{
int[] emax = new int[10];
int I, mayor;
Console.WriteLine("introduce un numero entero:");
emax[0] = int.Parse(Console.ReadLine());
mayor = emax[0];
for (I = 1; I <> mayor)
{
mayor = emax[I];
}
}
Console.WriteLine("listado de 10 numeros enteros");
for (I = 0; I <>



PRACTICA 8.2 B CONSOLA

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace practica_8._2_b_consola
{
class Program
{
static void Main(string[] args)
{
int[] emax = new int[10];
int I, mayor, pos = 1;
Console.WriteLine("INTRODUCE UN NUMERO ENTERO:");
emax[0] = int.Parse(Console.ReadLine());
mayor = emax[0];
for (I = 1; I <> mayor)
{
mayor = emax[I];
pos = I;
}
}
Console.WriteLine("Listado de 10 Numeros enteros");
for (I = 1; I <>


PRACTICA 8.2 C CONSOLA

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PRACTICA_8._2_C_CONSOLA
{
class Program
{
static void Main(string[] args)
{
int[] emax = new int[10];
int I, menor, pos = 1;
Console.WriteLine("INTRODUCE UN NUMERO ENTERO:");
emax[0] = int.Parse(Console.ReadLine());
menor = emax[0];
for (I = 1; I < menor =" emax[I];" pos =" I;" i =" 1;">



PRACTICA 8.3 CONSOLA

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PRACTICA_8._._3_CONSOLA
{
class Program
{
static void Main(string[] args)
{
int I=0;
double[] corriente = new double[10];
double[] voltios = new double[10];
double[] resistencia = new double[10];
for (I = 0; I < i =" 0;" i =" 0;" align="left">

No hay comentarios:

Publicar un comentario