#HappyNewYear in different #Programming #Languages
There are around 700 #programming languages exists for #Software development. Below codes will print #Happy £New Year #2022 in 15 Languages. Try your lists
Javascript :
console.log("Happy New Year 2022");
Java ;
class NewYear {
public static void main(String[] args) {
System.out.println("Happy New Year 2022");
}
}
Python :
print("Happy New Year 2022")
Kotlin :
package NewYear
fun main() {
println("Happy New Year 2022")
}
Objective-C;
#import
#import
int main(void)
{
NSLog(@"Happy New Year 2022");
return 0;
}
MATLAB;
disp('Happy New Year 2022')
Pascal
program NewYear;
begin
WriteLn('Happy New Year 2022');
end.
Ruby ;
puts "Happy New Year 2022"
Swift
import Swift
print("Happy New Year 2022")
C# :
Using system
class NewYear
{
public static void Main(string[] args)
{
Console.WriteLine("Happy New Year 2022");
}
}
C code
#include <stdio.h>
int main(void)
{
printf("Happy New Year 2022\n");
}
C++ code :
#include <iostream>
int main()
{
std::cout << "Happy New Year 2022\n";
return 0;
}
HTML ;
<!DOCTYPE html>
<html>
<body>
<h1>Happy New Year 2022</h1>
</body>
</html>
Lisp :
(print "Hello World")
PHP ;
echo "Hello World" . PHP_EOL;
x
Comments
Post a Comment