Guest User

Untitled

a guest
May 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1.  
  2. /*
  3. * Creado por SharpDevelop.
  4. * Usuario: Alumno
  5. * Fecha: 12/01/2012
  6. * Hora: 12:13 p.m.
  7. *
  8. * Para cambiar esta plantilla use Herramientas | Opciones | Codificación | Editar Encabezados Estándar
  9. */
  10. using System;
  11.  
  12. namespace programilla
  13. {
  14. class Program
  15. {
  16. public static void Main(string[] args)
  17. {
  18. int numero;
  19. double numero2;
  20.  
  21. Console.WriteLine("Introduce un valor entero");
  22. numero = Convert.ToInt32(Console.ReadLine());
  23.  
  24. Console.WriteLine("Introduce un valor con decimales");
  25. numero2 = Convert.ToDouble(Console.ReadLine());
  26.  
  27. Console.WriteLine("Contenido numero : " + numero);
  28. Console.WriteLine("Contenido numero2 : " + numero2);
  29.  
  30. if ( numero > numero2 )
  31. {
  32. Console.WriteLine("El primer numero es mayor");
  33. }
  34.  
  35. else
  36. {
  37.  
  38. if (numero == numero2)
  39. {
  40. Console.WriteLine("Los numeros son iguales");
  41. }
  42. else
  43. {
  44.  
  45.  
  46. Console.WriteLine("El numero2 es mayor");
  47. }
  48. }
  49. Console.ReadKey(true);
  50.  
  51.  
  52.  
  53. }
  54.  
  55. // TODO: Implement Functionality Here
  56.  
  57.  
  58. }
  59. }
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  73.  
  74.  
  75. PRograma promedio
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82. /*
  83. * Creado por SharpDevelop.
  84. * Usuario: Alumno
  85. * Fecha: 12/01/2012
  86. * Hora: 12:50 p.m.
  87. *
  88. * Para cambiar esta plantilla use Herramientas | Opciones | Codificación | Editar Encabezados Estándar
  89. */
  90. using System;
  91.  
  92. namespace calif
  93. {
  94. class Program
  95. {
  96. public static void Main(string[] args)
  97. {
  98. double a;
  99. double b;
  100. double c;
  101. double Pro;
  102.  
  103.  
  104. Console.WriteLine("Introduce calificacion de Ingles");
  105. a = Convert.ToDouble(Console.ReadLine());
  106.  
  107. Console.WriteLine("Introduce calificacion de progra");
  108. b = Convert.ToDouble(Console.ReadLine());
  109.  
  110. Console.WriteLine("Introduce calificacion de redes");
  111. c = Convert.ToDouble(Console.ReadLine());
  112.  
  113. Pro = (a+b+c)/3;
  114.  
  115. Console.WriteLine("tu promedio es : " + Pro);
  116.  
  117. if (Pro >= 8 )
  118. {
  119. Console.WriteLine("Estas Aprobado");
  120. }
  121. else
  122. {
  123. Console.WriteLine("Estas Reprobado");
  124. }
  125. Console.ReadKey(true);
  126. }
  127.  
  128.  
  129. }
  130. }
Add Comment
Please, Sign In to add comment