F&A Diskussionen
what have i to do, if i want that the program always writes for example :
0+1
1+2
3+3
6+4
10+5
15+6
...
because now it just writes
1
3
6
10
15
...
and maybe if it works, can i make then
0+1=1
1+2=3
3+3=6
6+4=10
#include <iostream>
using namespace std;
int main(){
int i;
int sum = 0;
for (i = 1; i <= 100; i++){
sum = sum+i;
cout<<sum<<endl;
}
cout<<sum;
return 0;
}
1 Stimme
5 AntwortenWhat is wrong with my code
1 Stimme
1 AntwortPrblems pls
-2 Stimmen
4 AntwortenHelp please with this task
-1 Stimme
3 AntwortenC++
0 Stimmen
2 Antwortenplease fix this code
0 Stimmen
1 AntwortCould someone please help me with this..
Write code for an applet class that contains three labels First Number, Second Number, and Sum; three text fields for displaying the values of First Number, Second Number, and Sum, respectively; a button labeled Add. The applet allows the user to enter two integer values and displays the Sum if the Add button is clicked.
Write a html page to run and display the applet appropriately
0 Stimmen
4 AntwortenJava programming loop statements
0 Stimmen
2 AntwortenHeute heiß
Best Python Calculator Code
1 Votes
New code
1 Votes
Clean Code
3 Votes
Hello Everyone
0 Votes
How would you solve the part of the C# Intermediate code project that requires operator overloading?
0 Votes
Installation
0 Votes