fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7.  
  8. //uso de IF
  9.  
  10. //1)MOSTRAR EL MENSAJE DE MENOR O MAYOR DE EDAD SABIENDO
  11. //QUE LA MAYORIA DE Edad se alcanza a los 18.
  12.  
  13. //primera fACE:DECLARACION DE Variables
  14. int edad;
  15.  
  16. //segunda fase:entrada de datos (asignacion)
  17. edad=19;
  18.  
  19. //tercera fase: Proceso y Salida
  20.  
  21. if (edad>=18){
  22. Console.Write("Mayor de Edad");
  23. }
  24. else {
  25. Console.Write("Menor de Edad");
  26. }
  27. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(26,246): error CS1525: Unexpected symbol `end-of-file'
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty