Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.12 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Math;
  7.  
  8. namespace Evalua
  9. {
  10.     class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.            
  15.             const int n = 3;
  16.             //n = 5;
  17.  
  18.             float f = 3.4e38;
  19.             //f = 3.5e38;
  20.             f = (float) (3.5e38);
  21.             Console.WriteLine(f);
  22.  
  23.             //char c = pow2(16);
  24.             char c = (char) (pow2(16));
  25.             Console.WriteLine(c);
  26.  
  27.             int n2 = 3;
  28.             //c = n;
  29.  
  30.             //foreach (2.5) Console.WriteLine("Hola");
  31.             foreach ((int)(2.5)) Console.WriteLine("Hola");
  32.  
  33.             string nombre = (string)(1.5 + pow2(3.8));
  34.             Console.WriteLine(nombre);
  35.  
  36.             // float area = pow2((string)(10));
  37.             string numero = "3.1415";
  38.             numero = "3.5e38";
  39.             float area = (float)(numero);
  40.             Console.WriteLine(area);
  41.            
  42.             numero = "HECTOR";
  43.             //area = (float)(numero);
  44.  
  45.  
  46.             // Ensamblador
  47.  
  48.             /*Console.Write("Ingresa el numero: ");
  49.             string n = Console.ReadLine();
  50.             int n2 = (int)(n);
  51.  
  52.             if (n2 % 2 == 0)
  53.             {
  54.                 Console.Write(n2);
  55.                 Console.WriteLine(" es par");
  56.             }
  57.             else
  58.             {
  59.                 Console.Write(n2);
  60.                 Console.WriteLine(" es impar");
  61.                 if (n2 > 10) Console.WriteLine("Es mayor a 10");
  62.                 else Console.WriteLine("Es menor a 10");
  63.             }
  64.  
  65.             int cont = 1;
  66.  
  67.             foreach (n2)
  68.             {
  69.                 foreach (cont) Console.Write("*");
  70.                 Console.WriteLine();
  71.                 cont = cont + 1;
  72.             }
  73.  
  74.             int preCont = 1;
  75.             foreach (3)
  76.                 foreach (2)
  77.                     foreach (2)
  78.                     {
  79.                         Console.WriteLine(preCont);
  80.                         preCont = preCont + 1;
  81.                     }*/
  82.  
  83.  
  84.         }
  85.     }
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement