#include <stdio.h> int main() { int S[] = {10, 7, 11, 5, 13, 8}; int n = 6; int sum = 0; for (int i = 0; i <= n - 1; i++) { sum += S[i]; } printf("%d", sum); return 0; }
To embed this project on your website, copy the following code and paste it into your website's HTML: