How to make .exe file from c code using visual studio 2022

I am assuming that you have already installed visual studio 2022 with necessary dot net frameworks and updates.