• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu

F&A Diskussionen

int arr[] = {11, 35, 62, 555, 989}; int sum = 0; for (int x = 0; x < 5; x++) { sum += arr[x]; } cout << sum << endl
arrays
5 Stimmen
8 Antworten
27th Nov 2016, 4:31 PM
Bhairesh M
Bhairesh M - avatar
int main() { int b = 5; int arr[b] = {11, 35, 62, 555, 989}; int sum = 0; for (int x = 0; x < 5; x++) { sum+=arr[x]
arraysc++
0 Stimmen
4 Antworten
13th Nov 2016, 4:54 PM
prashanth jerry
prashanth jerry - avatar
what is tjis code problem! #include <iostream> using namespace std; int main() { int b = 5; int arr[b] = {11, 35, 62, 555, 989}; int sum = 0; for (int x = 0; x < 5; x++) { sum += arr[x]; } cout << sum << endl; return 0; } I cannot make an array using int variable in order to define array's element number!?
arraysc++
1 Stimme
7 Antworten
30th Jul 2016, 9:14 PM
Hesam Alinejad
Hesam Alinejad - avatar
Given a list of numbers, output their sum using for loop.
[42,0,1,124,3,555,67,7,8,8897,99]sum=0foriinsx:x=
0 Stimmen
6 Antworten
18th Jul 2022, 9:40 AM
Syed Anas
Syed Anas - avatar
Heute heiß
Need a personal tutor
1 Votes
I can't figure out how to use the getElementById code in JavaScript Code Playground, I've tried multiple times and watched YT
0 Votes
Fix code
0 Votes
..
1 Votes
How can I turn my .py files to .exe files?
1 Votes
Software to write and run codes
1 Votes
How Much RAM is Required for Object Detection Project
0 Votes
Add lua
0 Votes
How to learn C++ and how long does it take
1 Votes
Summary please??
0 Votes