[ miljan9602 @ 30.01.2013. 23:33 ] @
Nasao sam negde code sa obicnom petljom, mada kad ga ukucam izlaz nij onakav kakav sam ocekivao... Code: #include <iostream> #include <winbgim.h> using namespace std; int main() { int x; cout << "Pre for naredbe" << endl; for (x = 1; x > 10; x = x + 1); { cout << x << endl; } system("PAUSE"); return 0; } Code je dobar to je obican primer, program bi trebao da izbaci brojeve od 1 do 9 al on izbaci samo 1 znate li u cemu je problem ? Probao sam da ga debug u Dev C++, Visual C++ Express 2010 i QT Creator, i uvek bude isti izlaz... |