What are you talking about bheja fry? Sanskrit grammar is not like Hindi or Marathi. Some of the vocabulary is borrowed into Hindi and marathi, but the grammatical principles are different.
Eg: Skr is a synthetic language - one that suffixes the noun to denote case (Nominative, accusative, instrumental,etc). All ancient indo-european languages are like that. Modern Indian languages are analytical - ones in which the noun remains the same, and case is denoted by the preposition. Hence analytical languages require tight sequencing of words unlike Skr in which word sequencing is not important. Other differences include the dual number, middle voice (atmanepada), handling of the formal, a wider range for conjugation of verbs and so on...
Skr is nothing like Hindi in grammar. Hindi grammar is more like french than Skr. Skr grammar is in fact more like greek.