#include<iostream>
using namespace std;
int main()
{
cout << "Hello World!";
return 0;
}
16 Nov 2011
Testing Code Block 2
Testing Code Block
#include<iostream> using namespace std; int main() { cout<<"something to test"; return 0; }
C++ "Hello World" Tutorial 1
C++ is very simple and basic language in computer programming. Simplest program in C++ is
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
return 0;
}
cout is the most powerful statement in c++ Programming
Output:
Hello World
14 Nov 2011
C++ For Loop
using C++ For Loop printing of counting 1 to 20
loop pattern is
for(data Type variableDeclaration; condition; increment )
for( int a=1; a<5; a++)
#include<iostream>
using namespace std;
main()
{
for(int a=1; a<=20; a++)
{
cout<<a;
}
return 0;
}
loop pattern is
for(data Type variableDeclaration; condition; increment )
for( int a=1; a<5; a++)
#include<iostream>
using namespace std;
main()
{
for(int a=1; a<=20; a++)
{
cout<<a;
}
return 0;
}
Subscribe to:
Posts (Atom)