Task3.cs 515 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Batrakova33P3variant
  7. {
  8. internal class Task3
  9. {
  10. static int time;
  11. public Task3(int n)
  12. {
  13. time = n;
  14. }
  15. public static void chislobakteri()
  16. {
  17. double colvo;
  18. colvo = Math.Pow(2,time);
  19. Console.WriteLine("За "+time+" минут клеток станет: "+colvo);
  20. }
  21. }
  22. }