Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobierenF&A Diskussionen
In the code below the output is 2. This code is used in a challenge and I get an error when I select the answer 2. It accepts as correct the answer 1 which I believe is wrong. If you agree please thumbs up.
If you find any other errors please post them here!
#include <iostream>
using namespace std;
int main()
{
for(int i=1; i>=1; i++) {
if(i<1 || i>1){
cout << i;
break;
}
}
return 0;
}
8 Stimmen
8 AntwortenCan anyone help me to code this
Write a method 'timesTable()' which accepts an integer value num from the keyboard and uses it to print 'times table' of itself in a structured format. Your output must include a header row. For example, if the user enters 5, your program's output should be:
5 Times Table
1 5 5
2 5 10
3 5 15
4 5 20
5 5 25
6 5 30
0 Stimmen
5 Antworten9
2 Stimmen
6 AntwortenHeute heiß
Html img
3 Votes
Am new in learning programming
0 Votes
Where do i write my code?
0 Votes
Popsicles
0 Votes
I'm new in learning programming
0 Votes
Weird Floating Point operation
0 Votes
Input Mismatch Error in Java
0 Votes
how do i load the Apl
1 Votes