Oh, Thank you very much Alpo and laserlight. Now I understand where the problem was :)
Type: Posts; User: amdriod
Oh, Thank you very much Alpo and laserlight. Now I understand where the problem was :)
oh wait, in the orignal question my condition was t>=5 and was incrementing by t++ because it was initialized at 0 (int t=0)
for (int t=0;t>=5;t++)
so isn't this the correct format and it...
Hahahahaha I feel so stupid. Thank you laserlight. the solution was pretty easy but I over-thought on it :P
Thank you for the help!
Here is my while loop version which works perfectly fine as expected:
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string pass;
int a=5;
I'm trying to write this c++ programe:
Using FOR Loop. I know this can be easily done using while loop. But I want to know how to do it with for loop aswell. Here is what I have so far:
...