Home C 75. Compatible Arrays 75. Compatible Arrays / August 03, 2017 Code: #include<stdio.h> int main(){ int n,a[20],b[20],i,flag=0; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&a[i]); for(i=0;i<n;i++){ scanf("%d",&b[i]); if(a[i]<b[i]) flag=1; } if(flag) printf("Incompatible"); else printf("Compatible"); return 0; } You Might Also Like Write a program that calculate the sum of the ff. quantities. In each case, N indicates a quantity specified by user. A. 1+½+⅓+¼...+¹/N=_____ B. 1²+2²+3²+... N²=______October 06, 2017Single number as a command line argumentOctober 02, 2017How to swap two numbers by using function September 29, 2017 Post a Comment
No comments