DIAGRAMA DE FLUJO


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TABLADEVALORES_PARA_X_y_Y
{
class Program
{
static void Main(string[] args)
{
double X, Y;
Console.WriteLine("FUNCION MATEMATICA");
Console.WriteLine("Valor X Valor Y");
for (X = 2; X <= 10; X = X + 0.2) { Y = 3 * Math.Pow(X, 5) + 2 * Math.Pow(X, 3) + X; Console.WriteLine("{0} {1}", X, Y); } Console.ReadKey(); } } }
TABLA DE VALORES DE X Y CON INCREMENTOS DE ,2 VISUAL

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace TABLAD_VALORES_X_Y_VISUAL
{
public partial class Form1 : Form
{
double X, Y;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
double X, Y;
listBox1.Items.Add("VALOR DE X \t\t\t VALOR DE Y");
for (X = 2; X <= 10; X = X + 0.2)
{
Y = 3 * Math.Pow(X, 5) + 2 * Math.Pow(X, 3) + X;
listBox1.Items.Add(X.ToString() + "\t\t" + Y.ToString());
}
}
private void button2_Click(object sender, EventArgs e)
{
listBox1.Items.Clear();
}
private void button3_Click(object sender, EventArgs e)
{
Close();
}
}
}
No hay comentarios:
Publicar un comentario