The head of the state in India is the President. He is elected indirectly by an electoral college consisting of all the members of both the houses of the parliament.
The head of the government is the Prime Minister. He is elected directly by the people of the country.