fork download
  1. PROGRAM USERDETAILS
  2.  
  3. ! Program to Take user details about their hobbies
  4. ! For example take the user name and hobboes and display
  5.  
  6. START
  7. IMPLICIT NONE
  8.  
  9. ! Declare variable names and types
  10.  
  11. STRING :: Name, Hobbie, experience
  12.  
  13. ! Initialize name to an empty string
  14.  
  15. Name = '';
  16.  
  17. ! Ask the user for name
  18.  
  19. Name :=input
  20.  
  21. ! Ask user for Programming experience
  22.  
  23. Experience:= input ;
  24.  
  25. ! Ask the user of the hobby
  26.  
  27. Hobby:= User Input ;
  28.  
  29.  
  30.  
  31. ! Output the details for the user
  32.  
  33. Print: Name, Hobbie and Hobbie
  34. END
  35.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,4): error CS1525: Unexpected symbol `PROGRAM'
prog.cs(15,12): error CS1011: Empty character literal
Compilation failed: 2 error(s), 0 warnings
stdout
Standard output is empty