Posts

Showing posts with the label hello world program in c

If Else If ladder statement in C++ Programming Language

Image
 If Else If ladder statement in C++ Programming Language In programming languages we have conditional statements or decision making statements that we can use in order to make decisions among multiple conditions. Today we are going to cover a simple conditional statement which is known as if-else-if ladder statement in C++ programming language.  In C++ programming language the if-esle-if ladder statement is a multi-way decision-making construct, it allows us to test different  conditions in sequence, and executing the block of code associated with the first condition that evaluates to be true. Syntax of if-else-if ladder statement in C++ programming language if(condition1) {     //code to be executed if condition1 is true     } else if(condition2) {     //code to be executed if condition2 is true     }     else if(condition3) {     //code t...

How to run c project in visual studio community 2022

Image
  How to Run C project in Visual Studio Community 2022 Many people think we cannot write c code in the visual studio community. but this is completely not true, yes we can create a C file and run C code in Visual Studio 2022 let us see how we can achieve it. 1) Open Visual Studio 2022  First of all, we are going to open Visual Studio 2022. 2) creating a new project  Then we are going to create a new project by clicking create new project button. 3) choosing a project template: Create a new project window that will appear in front of you. From this window select an empty project template with C++ symbol on it. Then push the next button. 4) configure your project  A new window will appear in front of you with the heading Configure your new project. In this window, you can select your project and solution name. And also the location of your project. then click the Create button. 5) New project created: On clicking the create button a C++ project is go...