We report the first results of elliptic (v2), triangular (v3), and quadrangular (v4) flow of charged particles in Pb-Pb collisions at a center-of-mass energy per nucleon pair of root s(NN) = 5.02 TeV with the ALICE detector at the CERN Large Hadron Collider. The measurements are performed in the central pseudorapidity region vertical bar n vertical bar <0.8 and for the transverse momentum range 0.2 <p(T) <5 GeV/c. The anisotropic flow is measured using two-particle correlations with a pseudorapidity gap greater than one unit and with the multiparticle cumulant method. Compared to results from Pb-Pb collisions at root s(NN) = 2.76 TeV, the anisotropic flow coefficients v2, v3, and v4 are found to increase by (3.0 +/- 0.6)%, (4.3 +/- 1.4)%, and (10.2 +/- 3.8)%, respectively, in the centrality range 0%-50%. This increase can be attributed mostly to an increase of the average transverse momentum between the two energies. The measurements are found to be compatible with hydrodynamic model calculations. This com