Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include <stdio.h>
- int main()
- {
- int a[5] = {10,17,-3,6,-12}, b[5] = {7,17,-1,-4,0}, c[5] , i;
- for(i=0; i<5; i++)
- {
- if (a[i]>b[i]){
- c[i]=a[i];
- }
- else if (b[i]>a[i]){
- c[i]=b[i];
- }
- else {
- c[i]=0;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement