Advertisement
Josif_tepe

Untitled

Feb 5th, 2021
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <ctype.h>
  5.  
  6. int main()
  7. {
  8.     char s1[20] = "Ispit";
  9.     char s2[20] = "Kolokvium";
  10.     for(int i = 0; i < strlen(s1); i++) {
  11.         if(s1[i] == s2[6]) {
  12.             return 0; // zavrisi ja programata
  13.         }
  14.     }
  15.     printf("zdravo!\n");
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement