I am Alvin and I was a beginner in C++ Programing Languange and I have a code:
#include <iostream>
#include <string>
using namespace std;
int main(){
for (int i=0; i == 5; i++){
cout << i << ", ";
}
system("pause"); // i add this code to avoid program close when i try to run it
return 0;
}
and when I compile it doesn't display an error message i.e is successfully compiled but, when I try to run it, it's doesn't display 'i' values i.e it's display blank screen. can somebody help me.