Advertisement
Josif_tepe

Untitled

Nov 19th, 2023
588
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.57 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3.  
  4. int main (int argc, const char * argv[]) {
  5.    
  6.     int n;
  7.     scanf("%d", &n);
  8.    
  9.     int prethoden_broj;
  10.     int strogo_rastecka = 1;
  11.     // i = 5
  12.     // prethoden_broj = 5
  13.     for(int i = 1; i <= n; i++) {
  14.         int broj;
  15.         scanf("%d", &broj);
  16.        
  17.         if(i > 1) {
  18.             if(prethoden_broj < broj) {
  19.                
  20.             }
  21.             else {
  22.                 strogo_rastecka = 0;
  23.             }
  24.         }
  25.         prethoden_broj = broj;
  26.     }
  27.     printf("%d\n", strogo_rastecka);
  28.     return 0;
  29.  
  30. }
  31.  
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement