Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main() {
  5. int i;
  6. printf("Witaj w programie ala ma kota zaczynajmy");
  7.  
  8. for (i = 0; i < 99; i++) {
  9. printf("Ala ma %d", i);
  10. if (i == 1) {
  11. printf("kota\n");
  12. }
  13. else if (i % 10 < 2 || i % 10 > 4 ) {
  14.  
  15. printf("Kotow\n");
  16. }
  17. else {
  18. printf("Koty\n");
  19. }
  20. }
  21.  
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement