Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Math;
- namespace Evalua
- {
- class Program
- {
- static void Main(string[] args)
- {
- const int n = 3;
- //n = 5;
- float f = 3.4e38;
- //f = 3.5e38;
- f = (float) (3.5e38);
- Console.WriteLine(f);
- //char c = pow2(16);
- char c = (char) (pow2(16));
- Console.WriteLine(c);
- int n2 = 3;
- //c = n;
- //foreach (2.5) Console.WriteLine("Hola");
- foreach ((int)(2.5)) Console.WriteLine("Hola");
- string nombre = (string)(1.5 + pow2(3.8));
- Console.WriteLine(nombre);
- // float area = pow2((string)(10));
- string numero = "3.1415";
- numero = "3.5e38";
- float area = (float)(numero);
- Console.WriteLine(area);
- numero = "HECTOR";
- //area = (float)(numero);
- // Ensamblador
- /*Console.Write("Ingresa el numero: ");
- string n = Console.ReadLine();
- int n2 = (int)(n);
- if (n2 % 2 == 0)
- {
- Console.Write(n2);
- Console.WriteLine(" es par");
- }
- else
- {
- Console.Write(n2);
- Console.WriteLine(" es impar");
- if (n2 > 10) Console.WriteLine("Es mayor a 10");
- else Console.WriteLine("Es menor a 10");
- }
- int cont = 1;
- foreach (n2)
- {
- foreach (cont) Console.Write("*");
- Console.WriteLine();
- cont = cont + 1;
- }
- int preCont = 1;
- foreach (3)
- foreach (2)
- foreach (2)
- {
- Console.WriteLine(preCont);
- preCont = preCont + 1;
- }*/
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement