1. I got A on the math test.

2. I won A on the math test.

(Are both grammatical?)

Sorry, I posted them again.

1. I got an A on the math test.
2. I won an A on the math test.
(Are both grammatical?)

Neither sentence in your first post is correct.

In your second post, #1 is correct, but #2 is not.

Out of the two sentences, only the first one is grammatically correct:

1. "I got an A on the math test."

In this sentence, "got" is the past tense of "get," and "A" is used as an indefinite article before the noun "A." Furthermore, "on the math test" specifies the context of the achievement.

The second sentence:

2. "I won A on the math test."

This sentence is grammatically incorrect. The verb "won" typically refers to winning a competition or contest, so using it in this context wouldn't be appropriate. It would be more suitable to use "got" or "received" when referring to the grade received on a test.

To verify the grammatical correctness of a sentence, it can be helpful to understand the usage of the words involved, review their part of speech, consider the context, and consult grammar rules if unsure.