cpp cin code example Example 1: cin in c++ cin >> varName; Example 2: cin syntax in c++ cin >> var1 >> var2 >> … >> varN;