demo - HTMLify profile

demo's Profile Picture

demo

53 Files

20002 Views

Latest files of /demo/code

hello-world.py demo/code/hello-world.py
382 Views
1 Comments
print("Hello, World!")
display-date-and-time.html demo/code/display-date-and-time.html
376 Views
0 Comments
const currentDate = new Date();
console.log(`Current Date and Time: ${currentDate}`);
display-date-and-time.js demo/code/display-date-and-time.js
242 Views
0 Comments
const currentDate = new Date();
console.log(`Current Date and Time: ${currentDate}`);
calculate-sum-of-two-numbers.java demo/code/calculate-sum-of-two-numbers.java
367 Views
0 Comments
public class SumCalculator {
public static void main(String[] args) {
int num1 = 5;
int num2 = 10;
int sum = num1 + num2;
System.out.println("Sum: " + sum);
}
}
calculating-factorial.cpp demo/code/calculating-factorial.cpp
370 Views
0 Comments
#include <iostream>
using namespace std;

int factorial(int n) {
if (n <= 1)
return 1;
return n * factorial(n - 1);
}
simple-string-manipulation.rb demo/code/simple-string-manipulation.rb
435 Views
0 Comments
name = "John"
greeting = "Hello, #{name}!"
puts greeting
simple-webpage.php demo/code/simple-webpage.php
434 Views
0 Comments
<!DOCTYPE html>
<html>
<head>
<title>My PHP Web Page</title>
</head>
<body>
<h1>Welcome to my PHP Web Page</h1>
<?php
calculate-area-of-rectangle.swift demo/code/calculate-area-of-rectangle.swift
412 Views
0 Comments
let length = 5.0
let width = 3.0
let area = length * width
print("Area of the rectangle: \(area)")
creating-simple-table.sql demo/code/creating-simple-table.sql
402 Views
0 Comments
CREATE TABLE Students (
StudentID INT PRIMARY KEY,
FirstName VARCHAR(50),
LastName VARCHAR(50),
Age INT
);
basic-webpage-structure.html demo/code/basic-webpage-structure.html
423 Views
0 Comments
<!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>
hello-world.asm demo/code/hello-world.asm
463 Views
1 Comments
section .data
hello db 'Hello, World!',0

section .text
global _start

_start:
; Write the string to stdout (file descriptor 1)
hello-world.m demo/code/hello-world.m
400 Views
0 Comments
(=<`:9876Z4321UT.-Q+*)M'&%$H"""'~}|Bzyxwvutsrqponmlkjihgfedcba`_^][
ZYXWVUTSRQPONMLKJIHGFEDCBA@?>=<;:9876543210/.-, +*
hello-world.i demo/code/hello-world.i
448 Views
0 Comments
Media file
hello-world.scala demo/code/hello-world.scala
380 Views
0 Comments
object HelloWorld {
def main(args: Array[String]): Unit = {
println("Hello, World!")
}
}
hello-world.rs demo/code/hello-world.rs
427 Views
0 Comments
fn main() {
println!("Hello, World!");
}
hello-world.go demo/code/hello-world.go
388 Views
0 Comments
package main

import "fmt"

func main() {
fmt.Println("Hello, World!")
}
hello-world.pl demo/code/hello-world.pl
381 Views
0 Comments
print "Hello, World!\n";
hello-world.kt demo/code/hello-world.kt
397 Views
0 Comments
fun main() {
println("Hello, World!")
}
hello-world.cs demo/code/hello-world.cs
399 Views
0 Comments
using System;

class Program {
static void Main() {
Console.WriteLine("Hello, World!");
}
}
hello-world.cobra demo/code/hello-world.cobra
360 Views
0 Comments
Media file
check-leap-year.cpp demo/code/check-leap-year.cpp
365 Views
0 Comments
#include <iostream>
using namespace std;

int main() {

int year;
cout << "Enter a year: ";
cin >> year;
check-odd-or-even.cpp demo/code/check-odd-or-even.cpp
375 Views
0 Comments
#include <iostream>
using namespace std;

int main() {
int n;

cout << "Enter an integer: ";
cin >> n;
check-prime.cpp demo/code/check-prime.cpp
385 Views
0 Comments
#include <iostream>
using namespace std;

int main() {

int i, n;
bool is_prime = true;

check-prime.js demo/code/check-prime.js
192 Views
0 Comments
// 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) {
Hello World in Java demo/code/hello-world.java
469 Views
6 Comments
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
hello-world.cbl demo/code/hello-world.cbl
345 Views
0 Comments
IDENTIFICATION DIVISION.
PROGRAM-ID. HelloWorld.
PROCEDURE DIVISION.
DISPLAY "Hello, World!".
STOP RUN.
Rock Paper Scissors Game in Kotlin demo/code/RPS.kt
393 Views
0 Comments
import java.util.Random

fun main() {
val options = arrayOf("Rock", "Paper", "Scissors")

while (true) {
println("Enter your choice (Rock, Paper, Scissors) or 'exit' to quit:")
val userChoice = readLine()?.capitalize()