Installation & Execution: Running C Programs in Visual Studio Code 2022
Program 1: Hello World
File name: myfirstprogram.c
Code:
What happened:
I opened VS Code, wrote this little program, pressed Run or the green play button.
It said:
Program 2: Show the Larger Number Between Two Numbers
File name: shows_largerno._bet2no.c
Code:
What happened:
I ran it, gave it two numbers like 50 and 57, and my program told me:
Yup, it worked perfectly.
Program 3: Calculator in C (Basic 4 Operations +-*/)
File name: calculator_in_c.c
Code:
What happened:
I typed 10 and 2 as input.
And my mini-calculator replied:
No comments:
Post a Comment