Sex with a minor, i.e. a girl who is below 18 years of age is rape even if the girl has given her consent to it. The consent of the girl does not matter if she is below 18 years of age.
For example: Vijay is a male of 30 years old. If he has sex with Shanti who is 17 years old, with her consent, it will still amount to rape.0