Posts

Showing posts from February, 2020
Image
These four programming languages are the most popular among the coders in terms of competitive coding and programming. C is a structure/procedure-oriented programming language as well as fast. C++ as of today in its efficiency, speed, and memory makes it widely popular among coders. Java is platform-independent. It continues to add considerable value to the world of software development. Python requires less typing, provides new libraries, fast prototyping, and several other new features. inputs: N = 3 3 9 8 8 12 74 Sample Output: 11 21 82 #C #include <stdio.h> int main(void) { int N, i; scanf("%d", &N); // Declare the two arrays int numArrayA[N], numArrayB[N], sumArray[N]; for(i=0;i<N;i++) sumArray[i]=0; // Get the numArrayA for (i=0; i<N; i++) { scanf("%d", &numArrayA[i]); } // Get the numArrayB for (i=0; i<N; i++) { scanf("%d", &numArrayB[i]); } for(i=0;i<N;i++){ sumArra