Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Array Sum
//gcc 5.4.0 #include <stdio.h> int main(void) { int nums1[10]={1,2,3,4,5,6,7,8,9,10}; int nums2[10]={2,4,6,8,10,12,14,16,18,20}; int sum[10]; for (int i=0; i <sizeof(nums1)/4; i++){ sum[i]=nums1[i]+nums2[i]; printf("Sum is %d\n",sum[i]); } return 0; }
run
|
edit
|
history
|
help
1
13
Max of arrays
CO Assignment 1 Question 1
Lab 6 mb
C_141204_ValorNumerico
Memory leak
Assignment 5 v2
diagonal sum
-Wfloat-conversion
a3