Warung Online

March 24, 2012

C++ LOOPING FOR

//program_looping_for
#include<iostream>

using namespace std;

main ()
{  
  system("cls");
  for (int x=0;x<=2;x++)
       cout<<"LOOPING"<<endl; // 3 kali
  for (int y=0;y<=2;++y)
       cout<<"FOR"<<endl;     // 3 kali
  system("pause");                         
  return 0;
}