Top 10 programming language and it's uses and it's basic code
WELCOME TO PYTHONSPVR
IN THIS BLOG YOU WILL KNOW TOP 10 PROGRAMMING LANGUAGE AND IT'S USES AND IT'S BASIC CODE.
1) PYTHON:- This programming language published in 1991.
This programming language is used as backend language.
1. Web Development
2. Game Development
3. Machine Learning and Artificial Intelligence
4. Data Science and Data Visualization
5. Desktop GUI
6. Web Scraping Applications etc.
Source Code
Hello, world!# This program prints Hello, world!
print('Hello, world!')
Output
Hello, world!
2) JAVASCRIPT: -This programming language published in 1996.
JavaScript is the Programming Language for the Web. JavaScript can update and change both HTML and CSS.
JavaScript can calculate, manipulate and validate data.
1. Adding interactive behavior to web page
2. Creating web and mobile apps
3. Building web servers and developing server applications etc.
Source Code
<!doctype html>
</html>
<head>
</head>
</body>
<h1 id="h"></h1>
<script>
var a="javascript";
console.log("Hello"+a);
document.write("Hello World");
document.getElementById('h').innerHTML="Hello World";
alert("Hello");
</script>
</body>
</html>
Output
Hello world!
3) JAVA:- Java is a programming language and computing platform.
There are lots of applications and websites that will not work unless you have Java installed, and more are created every day.
Java is fast, secure, and reliable.
Mobile Application
Desktop GUI Applications
Web-based Applications
Scientific Applications
Big data technologies etc.
Source Code
/* HelloWorld.java
*/
public class HelloWorld
{
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
Output
Hello world
4) C Programming:- C is a powerful general-purpose programming language.
It can be used to develop software like operating systems, databases, compilers, and so on.
a) Data base system
b) Graphics packages
c) Word processer
d) Spread sheets
e) Network driver etc.
Source code
Program to Display "Hello, World!"
#include <stdio.h>
void main(){
clrscr();
int main()
// printf() displays the string inside quotation
printf("Hello, World!");
return 0;
getch();
}
Output
Hello, World!
5) C++:- C++ is a powerful, efficient and fast language. It is often used to develop game engines, games, and desktop apps to learn. C++ is beginning to be grouped with lower-level languages like C.
a) Operating system
b) Games
c) Browser
d) Libraries
e) Embedded system etc.
Source code
C++ "Hello World!" Program
// Your First C++ Program
#include <iostream>
int main() {
std::cout << "Hello C++!";
return 0;
}
Output
Hello C++!
6) RUBY:- A dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.
b) Community
c) Maintainability
d) Duck Typing
e) Dynamic Typing etc.
Source Code
# declaring a function named 'a' which accepts an
# integer and return 1
def a(u) return 1 end
# driver code
a = 3
b = 2
# this a + b interprets as a + b,
Output
5 as output
puts(a +b)
# this a b interprets as a(b) thus the returned
# value is printed
put (a b)
7) GO:- Go is an open source programming language that makes it easy to build simple, reliable, and efficient software. Golang emerged as an alternative to C++ .
a) A boosting to code readability and documentation
b) Offering a thoroughly language. consistent.
c) Allowing developing with. language multiple
d) Allowing easier maintenance of dependencies. etc
Source Code
fmt.Println("Hello, World!")
fmt
.
Println
(
"Hello, World!"
)
Output
Hello, World!
8) SWIFT:- Swift is a powerful and intuitive programming language for macOS, iOS, watch OS, tv OS and beyond.
Writing Swift code is interactive and fun, the syntax is concise yet expressive, and Swift includes modern features developers love.
Swift code is safe by design, yet also produces software that runs lightning-fast.
.The SWIFT code is used for sending money to overseas banks.
. A Society for Worldwide Interbank Financial Telecommunication code is an eleven-digit code, in which the first 4 digits denotes bank then next two digits denotes country and next two digits are for location code, last 3 digits are branch code. etc
Source Code
/* My first program in Swift 4 */
var myString = "Hello, World!"
print(myString)
import UTkit
var myString = "Hello, World!"
print(myString)
Output
Hello, World!
9) PHP:- PHP is widely used for server-side web development, when a website frequently requests information from a server.
PHP code is also easy to debug.
PHP Parser: A program that converts source and human readable code into a format easier for the computer to
understand.
Web Server: A program that executes file that form web pages from user request.
Web Browser: An application used to display content on world wide web. etc
Source Code
<?php
# Here echo command is used to print
echo "Hello, world!";
?>
Output:
Hello, world!
10) C# :- C++ is an extension of C that works well for programming the systems that run applications, as opposed to the applications themselves.
C++ also works well for multi-device and multi-platform systems.
It is also used foe create games.
b) Window application
c) Games development etc.
Source Code
#include <iostream>
using namespace std;
// main() is where program execution begins.
int main() {
cout << "Hello World"; // prints Hello World
return 0;
}
Output:
"Hello World"
THANKS YOU READING
BY SACHIN PRAJAPATI










Guys read and share with your friends
ReplyDelete👍🏻👍🏻👍🏻
ReplyDelete