Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis- 1
PerchĆØ nel ciclo for l'int ĆØ uguale a 1 e non zero??
Non capisco perchĆØ il ciclo for parte da 1...
4 Respostas
+ 6
Translation:
Why in the loop for int is equal to 1 and not zero ??
I do not understand why the cycle for part from 1 ...
+ 4
i wanna help you, could u say ur question in English?š
+ 4
@jay thank you
+ 3
@jonah i think you can start the (int) with any number and it will just run well, just like this example:
#include <iostream>
using namespace std;
int main()
{
for(int i=0;i<6;i++){
cout<<i<<endl;
}
return 0;
}
the int starts from 0 and the output will be:
0 1 2 3 4 5