Happy New Year 2021 in Different Programming Languages

New Year is around the corner, We all know that this year was very rough for everyone. But it’s finally going to end, so here I’m with a new post to show you how can you write Happy New Year 2021 in different programming languages.

I hope you guys like this if you do then please share this with all your friends. Ok now let’s jump right on the main content.


Happy New Year 2021 in Different Programming Languages:


Java

happy new year in java
Happy New Year In Java
class NewYear {
public static void main(String[] args) {
System.out.println("Happy New Year 2021");
}
}

JavaScript

happy new year in javascript
Happy New Year In Javascript
console.log("Happy New Year 2021");

a single line, that’s why I love JavaScript.

Python

happy new year in python
Happy New Year In Python
print("Happy New Year 2021")

again a single line, same for python.

Kotlin

happy new year in kotlin
Happy New Year In Kotlin
pakage NewYear
 
fun main() {
println("Happy New Year 2021")
}

Swift

import Swift
print("Happy New Year 2021")

C#

happy new year in c sharp
Happy New Year In C#
using System;
class NewYear
{
public static void Main(string[] args)
{
Console.WriteLine("Happy New Year 2021");
}
}

Must Read: Must-Have New Year’s Resolutions For Programmers


C

#include <stdio.h>
 
int main(void)
{
    printf("Happy New Year 2021\n");
}

C++

#include <iostream>
 
int main()
{
    std::cout << "Happy New Year 2021\n";
    return 0;
}

HTML

<!DOCTYPE html>
<html>
<body>
<h1>Happy New Year 2021</h1>
</body>
</html>
<!-- I Know HTML is not a Programming Language,
But it's fun (LOL)
-->

Objective-C

#import 
#import 
  
int main(void)
{
    NSLog(@"Happy New Year 2021");
    return 0;
}

MATLAB

disp('Happy New Year 2021')

Pascal

program NewYear;
begin
  WriteLn('Happy New Year 2021');
end.

Ruby

puts "Happy New Year 2021"

I hope you like all this, if yes then please share this with all your friends and Subscribe me on YouTube and on other social media platforms.

And wish you all a very Happy New Year from @sachin

Sachin Sharma

Sachin Sharma

I am a programmer and Tech Enthusiast who loves to use my creative skills to solve complex problems.

You may also like...

1 Response

  1. 31st December 2020

    […] Updated Post With Pictures: Happy New Year 2021 in Different Programming Languages […]

Leave a Reply

Your email address will not be published. Required fields are marked *