Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int n;
- printf("Podaj liczbe zestawow: \n");
- scanf("%d", &n);
- int tab[n];
- for(int each=0;each<n;++each){
- printf("Podaj liczbe: \n");
- scanf("%d", &tab[each]);
- }
- for(int i=0;i<n;++i){
- if(tab[i]>0){
- printf("%d ", 1);
- }
- else{
- printf("%d ", 0);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement