demo - HTMLify profile

demo
53 Files
20002 Views
Latest files of /demo/code
const currentDate = new Date();
console.log(`Current Date and Time: ${currentDate}`);
console.log(`Current Date and Time: ${currentDate}`);
const currentDate = new Date();
console.log(`Current Date and Time: ${currentDate}`);
console.log(`Current Date and Time: ${currentDate}`);
public class SumCalculator {
public static void main(String[] args) {
int num1 = 5;
int num2 = 10;
int sum = num1 + num2;
System.out.println("Sum: " + sum);
}
}
public static void main(String[] args) {
int num1 = 5;
int num2 = 10;
int sum = num1 + num2;
System.out.println("Sum: " + sum);
}
}
#include <iostream>
using namespace std;
int factorial(int n) {
if (n <= 1)
return 1;
return n * factorial(n - 1);
}
using namespace std;
int factorial(int n) {
if (n <= 1)
return 1;
return n * factorial(n - 1);
}
name = "John"
greeting = "Hello, #{name}!"
puts greeting
greeting = "Hello, #{name}!"
puts greeting
<!DOCTYPE html>
<html>
<head>
<title>My PHP Web Page</title>
</head>
<body>
<h1>Welcome to my PHP Web Page</h1>
<?php
<html>
<head>
<title>My PHP Web Page</title>
</head>
<body>
<h1>Welcome to my PHP Web Page</h1>
<?php
let length = 5.0
let width = 3.0
let area = length * width
print("Area of the rectangle: \(area)")
let width = 3.0
let area = length * width
print("Area of the rectangle: \(area)")
CREATE TABLE Students (
StudentID INT PRIMARY KEY,
FirstName VARCHAR(50),
LastName VARCHAR(50),
Age INT
);
StudentID INT PRIMARY KEY,
FirstName VARCHAR(50),
LastName VARCHAR(50),
Age INT
);
<!DOCTYPE html>
<html>
<head>
<title>My Web Page</title>
</head>
<body>
<h1>Welcome to My Web Page</h1>
<p>This is a simple HTML webpage.</p>
<html>
<head>
<title>My Web Page</title>
</head>
<body>
<h1>Welcome to My Web Page</h1>
<p>This is a simple HTML webpage.</p>
section .data
hello db 'Hello, World!',0
section .text
global _start
_start:
; Write the string to stdout (file descriptor 1)
hello db 'Hello, World!',0
section .text
global _start
_start:
; Write the string to stdout (file descriptor 1)
(=<`:9876Z4321UT.-Q+*)M'&%$H"""'~}|Bzyxwvutsrqponmlkjihgfedcba`_^][
ZYXWVUTSRQPONMLKJIHGFEDCBA@?>=<;:9876543210/.-, +*
ZYXWVUTSRQPONMLKJIHGFEDCBA@?>=<;:9876543210/.-, +*
object HelloWorld {
def main(args: Array[String]): Unit = {
println("Hello, World!")
}
}
def main(args: Array[String]): Unit = {
println("Hello, World!")
}
}
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
using System;
class Program {
static void Main() {
Console.WriteLine("Hello, World!");
}
}
class Program {
static void Main() {
Console.WriteLine("Hello, World!");
}
}
#include <iostream>
using namespace std;
int main() {
int year;
cout << "Enter a year: ";
cin >> year;
using namespace std;
int main() {
int year;
cout << "Enter a year: ";
cin >> year;
#include <iostream>
using namespace std;
int main() {
int n;
cout << "Enter an integer: ";
cin >> n;
using namespace std;
int main() {
int n;
cout << "Enter an integer: ";
cin >> n;
#include <iostream>
using namespace std;
int main() {
int i, n;
bool is_prime = true;
using namespace std;
int main() {
int i, n;
bool is_prime = true;
// program to check if a number is prime or not
// take input from the user
const number = parseInt(prompt("Enter a positive number: "));
let isPrime = true;
// check if number is equal to 1
if (number === 1) {
// take input from the user
const number = parseInt(prompt("Enter a positive number: "));
let isPrime = true;
// check if number is equal to 1
if (number === 1) {
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
IDENTIFICATION DIVISION.
PROGRAM-ID. HelloWorld.
PROCEDURE DIVISION.
DISPLAY "Hello, World!".
STOP RUN.
PROGRAM-ID. HelloWorld.
PROCEDURE DIVISION.
DISPLAY "Hello, World!".
STOP RUN.