Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define A 40
- #define B 50
- void kiir(int t[], int meret){
- int i=0;
- for(i=0; i<meret; i++) printf("%d ", t[i]);
- putchar('\n');
- }
- void tombabs(int t[], int meret){
- int i=0;
- for(i=0; i<meret; i++) if(t[i]<0) t[i]=-1*t[i];
- putchar('\n');
- }
- int main(){
- int tomb[8];
- int i;
- for(i=0; i<8; i++)
- if(i%2==0) tomb[i]=0;
- else tomb[i]=-1;
- tombabs(tomb, 8);
- kiir(tomb, 8);
- return 0;
- }
Add Comment
Please, Sign In to add comment