daily pastebin goal
48%
SHARE
TWEET

Untitled

a guest Dec 14th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. #define A 40
  4. #define B 50
  5.  
  6.  
  7. void kiir(int t[], int meret){
  8.     int i=0;
  9.     for(i=0; i<meret; i++) printf("%d ", t[i]);
  10.     putchar('\n');
  11. }
  12.  
  13. void tombabs(int t[], int meret){
  14.     int i=0;
  15.     for(i=0; i<meret; i++) if(t[i]<0) t[i]=-1*t[i];
  16.     putchar('\n');
  17. }
  18.  
  19. int main(){
  20.     int tomb[8];
  21.     int i;
  22.     for(i=0; i<8; i++)
  23.         if(i%2==0) tomb[i]=0;
  24.         else tomb[i]=-1;
  25.     tombabs(tomb, 8);
  26.     kiir(tomb, 8);
  27.  
  28. return 0;
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top