Advertisement
Josif_tepe

Untitled

Nov 14th, 2022
739
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.  
  5. int main() {
  6.     int N;
  7.     scanf("%d", &N);
  8.     int paren = 0;
  9.     for(int i = 0; i < N; i++) {
  10.         if(i % 2 == 0) {
  11.             paren++;
  12.         }
  13.     }
  14.     printf("%d\n", paren);
  15.     return 0;
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement