Advertisement
Guest User

meanie is a cunt

a guest
Jan 29th, 2015
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. using System.Text;
  2. using System.Threading.Tasks;
  3.  
  4. namespace Tullyinputs
  5. {
  6. class Exercise1
  7. {
  8. string userinput = Console.Read(); //Creates string "userinput" containing what the user inputs
  9. Console.WriteLine("Well done you have typed in" + userinput); //Writes "well done..." + whatever the use types
  10. }
  11.  
  12. class Exercise2
  13. {
  14. Console.WriteLine("Please enter a word...");
  15. string userinput = Console.Read(); //Creates string "userinput" containing what the user inputs
  16. Console.WriteLine("Well done you have typed in" + userinput); //Writes "well done..." + whatever the use types
  17. Console.WriteLine("Aren't I clever");
  18. }
  19.  
  20. class Exercise3
  21. {
  22. Console.WriteLine("Please enter your username");
  23. string username = Console.Read(); //Creates string "username" containing what the user inputs
  24. Console.WriteLine("Please enter your password");
  25. string password = Console.Read(); //Creates string "password" containing what the user inputs
  26. Console.Write("You have just entered your username as ");
  27. Console.Write(username);
  28. Console.Write(" and your password as ");
  29. Console.WriteLine(password);
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement