How to write program in C, C++, Java, VB.net, C# & Python

How to write code in C, C++, Java, VB.net, C# & Python

 

Source: Google

Introduction

Whether you’re new to programming or looking to brush up on your skills, it helps to know which languages are in high demand. Here are 7 of the most popular programming languages of 2022 based on the number of job postings listed on job search sites Indeed, the average annual salary for those jobs, and factors such as ease of use and potential for growth.

 

C Language

Welcome, today we will see hello world program in c language. so let's start turbo c. now i mean qualify now what we have to do is we have to first load the include files libraries. so there are two libraries. okay now what we will do. we will write the main function void main. and then here in brackets we will write our print statement and right here. and okay so let's try to compile it. now okay so run it whatever so what we have to do. we have to open the output screen so you can see hello world is printed.

 

C++ Language

Welcome, today we will see hello world program in c plus plus programming language. so first start turbo c plus. now from opening the file new file. then what we have to do we have to include the library which is iostream.h so okay, now we will void main function. we will write the output to print the output. we have to write hello world we'll see out okay. so compile this program and then run and in windows output you can see.

 

Java Language

Welcome, today we will see hello world program in java programming language. so for that we have to open an eclipse here. this okay so here what you have to do you have to create a file name. name whatever you want to name it as and then with extension of java dot java. okay after that what we have to do. we have to use the keyword as public class and the name of the file. okay and that is what we have to do. we have to use public identifier and static void main and then we have to give parameters as string arguments. okay then we have to system out print and the message we want to print. Okay so first print this so here is our output.

 

VB.net Language

Welcome VB.net Today we will see hello world program in VB.net language. We have to open Visual Studio then we have to click and we have to create a new project. Then we have to select with Select vb.net language. Windows operating system and console application then we have to click on console dotnet Framework. and next We have to give project name and location then create. then we can see the code module and module name with the sub main function. Then we have to write a console. Writeline Then in the round bracket hello world in the next line. we have to write console.readline(), When we have to run Our program by clicking start. Now we can see the output of hello world.

 

C# Language

Welcome, today we will see hello world program in C# programming language. so we have to start Visual studio now to create a new project and select the shop next to create. so this will create a project of C# for us. now you can see so to print hello world, what we have to do we have to write a system that conserves. so now it starts so it's not showing the output. so for that we will just write and read straight line method also so now try to start. and here we go. We got the hello world output.

 

Python Language

Welcome, today we will see hello world program in python programming language. so we have to open this and now we have to write print(“Hello World”) and that's it. Run the program.

 

 

Conclusion

Some programmers are able to build a career out of being an expert in one language, but many programmers learn new languages frequently, Gorton says. It’s not uncommon for a professional programmer to be fluent in three or four different languages, he adds.

The type of software you want to develop is one consideration for which programming languages to learn. While there are no concrete rules for what language is used to write what software, a few trends offer some guidance: 

Web-based startups are more likely to be programming in Python and JavaScript.Larger companies tend to develop their internal software applications using C# or Java and their Web applications using PHP.


Reference : Program Code

Choose a Language and write your first code today!

 

Written by Tarun Sikhwal


Comments

Popular posts from this blog

VR Applications/Games Review | Top 5 VR Apps

Exploring the Future: Blogging in Virtual Reality

Augmented Reality (AR): Transforming the Blogging Experience