Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1.  
  2. //Dylan Cox
  3. //October 22 2019
  4. //Write a function that takes an integer parameter called dozens and outputs how many eggs are in those dozens.
  5. using System;
  6. class MethodDemo
  7. {
  8. static int doit ()
  9. {
  10. int fullnumber;
  11. fullnumber=Console.WriteLine(dozens*12);
  12. }
  13.  
  14. public static void Main ()
  15. {
  16. Console.WriteLine("How many egg cartons would you like?");
  17. int dozens;
  18. dozens=Console.ReadLine();
  19. Console.WriteLine("The total number of eggs in these cartons is: ");
  20. doit();
  21. }
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement