This is basic programs in c++