Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1.  
  2. #include "stdafx.h"
  3. #include "math.h"
  4. #include "stdio.h"
  5. #include "conio.h"
  6.  
  7. int main()
  8. {
  9. double a, i, k, n;
  10. i = 0, k = 0;
  11. printf("\n Vvedite chislo n ");
  12. scanf_s("%if, &n");
  13. printf("\n Vvedite chislo a: ");
  14. scanf_s("%if, &a");
  15. while (i = 0, i < n)
  16. {
  17. i % 2 == 0
  18. a % 2 != 0
  19. }
  20. {
  21. k = k + 1;
  22. i = i + 1;
  23.  
  24. }
  25. printf("kollichestvo clenov posletodvatelnosti=%f/n", k);
  26. _getch();
  27. return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement