Recent programs

BIOMATH

an anonymous user · February 03, 2023 · R
print ("Lea Jean Pestanas")
print ("https://[Log in to view URL]
Western_Region<-c("Australia", "Singapore", "Korea", "Japan", "New Zealand")
Western_Region
Year_Verified<-c(2014, 2018, 2014, 2015, 2017)
Year_Verified
Number_of_cases_confirmed<-c(285, 152, 190, 737, 2173)
Number_of_cases_confirmed 
length(Western_Region)
length(Year_Verified)
length(Number_of_cases_confirmed)
Measle<-data.frame(We

Pathfinder

vspin · updated February 04, 2023 · C++
// A C++ Program to implement A* Search Algorithm
#include "math.h"
#include <array>
#include <chrono>
#include <cstring>
#include <iostream>
#include <queue>
#include <set>
#include <stack>
#include <tuple>
using namespace std;

// Creating a shortcut for int, int pair type
typedef pair<int, int> Pair;
// Creating a shortcut for tuple<int, int, int> type
typedef tuple<double, int, int> Tuple;

// A structure to hold the necessary parameters
struct cell {
	// Row and Column index of its parent

biostat

an anonymous user · February 03, 2023 · R
> "Year verified and Number of confirmed measles cases, WHO Western Pacific Region" >
> WHO_Western_Pacific_Region <- c ("Australia","Singapore","Republic of Korea", "Japan", "New Zealand")
> WHO_Western_Pacific_Region
> year_verified <- c (2014, 2018, 2014, 2015, 2017)
> year_verified
> number_of_confirmed_measles_cases <- c (285, 152, 190, 737, 2173)
> number_of_confirmed_measles_cases
> measles_cases <- https://[Log in to view URL]

solid diamond.cpp

abhishek_01 · February 03, 2023 · C++
#include<iostream>
using namespace std;
int main()
{
    int n;
    cin>>n;
    //outer loop for no of rows
    for( int row=0;row<n;row++)
    {
        //inner loop for logic ki har ek row mein kya chl rha h! and space print krwane ka logic
        for(int col=0;col<n-row-1;col++)
        {
            cout<<" ";
        }
        // logic for * print
        for( int col=0;col<row+1;col++)
        {
            cout<<"* ";
        }
        cout<<endl;
        
        

PHP tutorials

ppj · February 03, 2023 · PHP
<?php
//Variables

/*$a = 10;
$b = 5;
$c = $a + $b;
echo $c;

$txt = 'PHP';
echo ' I love '.$txt;

//Data types
// 1. String
$x = 'Hello! ';
$y = 'My name is PHP';
echo "\n";
echo $x.$y;

//2. Integer
$i = 501;
echo var_dump($i);

//3. Float
$f = 3.14;
echo var_dump($f);

// 4. Boolean
$b = 100;
echo var_dump($b > 30 == true);

//5. Arrays
$fruits = array('Apple', 'Banana', 'Cashew');
echo var_dump($fruits[0]);

//String Functions
$car = 'Mercedes';
echo strlen($car);
echo "\n";
$nam = 'I love 

inverted full pyramid.cpp

abhishek_01 · updated February 03, 2023 · C++
#include<iostream>
using namespace std;
int main()
{
    int n;
    cin>>n;
    for( int row=0;row<n;row++)
    {
        //inner loop for logic ki har ek row mein kya chl rha h! and space print krwane ka logic
        for(int col=0;col<n-row-1;col++)
        {
            cout<<" ";
        }
        // logic for * print
        for( int col=0;col<row+1;col++)
        {
            cout<<"* ";
        }
        cout<<endl;
    }
    //outer loop for no of rows
    for( int row=0;row<n;row++)
 

L'introduction

an anonymous user · February 03, 2023 · C++
<!Doctype html>
<html>
<head>

</head>






</body>
</html>

full pyramid.cpp

an anonymous user · February 03, 2023 · C++
#include<iostream>
using namespace std;
int main()
{
    int n;
    cin>>n;
    //outer loop for no of rows
    for( int row=0;row<n;row++)
    {
        //inner loop for logic ki har ek row mein kya chl rha h! and space print krwane ka logic
        for(int col=0;col<n-row-1;col++)
        {
            cout<<" ";
        }
        // logic for * print
        for( int col=0;col<row+1;col++)
        {
            cout<<"* ";
        }
        cout<<endl;
        
        
    }
}

nn

an anonymous user · February 03, 2023 · NodeJS
var FullName="Manal"
var Age=30
if(FullName=="Manal")
{
console.log("hi "+FullName+ " ,please confirm that your age is "+Age)
    }
console.log()

nn

an anonymous user · February 03, 2023 · NodeJS
var FullName="Manal"
var Age=30
if{
    FullName=="Manal"
console.log("hi "+FullName+ " ,please confirm that your age is "+Age)
    
}
console.log()

nn

an anonymous user · February 03, 2023 · NodeJS
var FullName="Manal"
var Age=30
if{
    FullName=="Manal"
console.log("hi "+FullName " ,please confirm that your age is "+Age)
    
}
console.log()

nn

an anonymous user · February 03, 2023 · NodeJS
var Bluecupcakes=12
var Redcupcakes=3*12
var NoOfRemaningCakes=5
var eatencakes=((Bluecupcakes+Redcupcakes)-NoOfRemaningCakes)
console.log("no of eatencakes is "+eatencakes)

nn

an anonymous user · February 03, 2023 · NodeJS
var Bluecupcakes=12
var Redcupcakes=3*12
var NoOfRemaningCakes=5
var eatencakes=((Bluecupcakes+Redcupcakes)-NoOfRemaining)
console.log("no of eatencakes is "+eatencakes)

nn

an anonymous user · February 03, 2023 · NodeJS
var Bluecupcakes=12
var Redcupcakes=3*12
var NoOfRemaningCakes=5
var eatencakes=((Bluecupcakes+Redcupcakes)-NoOfReamaining)
console.log("no of eatencakes is "+eatencakes)

nn

an anonymous user · February 03, 2023 · NodeJS
var Bluecupcakes=12
var Redcupcakes=3*12
var NoOfRemaningCakes=5
var eatencakes=((Bluecupcakes+Redcupcakes)-5)
console.log("no of eatencakes is "+eatencakes)

log(n)

sodafago · February 03, 2023 · C++
#include <iostream>
#include <vector>
#include <algorithm>
#include <random>
#include <chrono>

int goodSolve(const std::vector<int> &a, const std::vector<int> &b) {
	int n = a.size();
	int m = b.size();
	int need = (n + m + 1) / 2;
	int l = 0, r = n;
	while (l < r) {
		int leftSz = (l + r) / 2;
		int rightSz = (need - leftSz);
		if (rightSz > m) {
		    l = leftSz + 1;
		    continue;
		}
		int mx = std::max({
		    leftSz > 0 ? a[leftSz - 1] : b[rightSz - 1],
		    rightSz > 0 ? b[rightSz - 1

SQL program 1

an anonymous user · February 03, 2023 · SQL
-- create a table
CREATE TABLE students (
  id INTEGER PRIMARY KEY,
  name TEXT NOT NULL,
  gender TEXT NOT NULL
);
-- insert some values
INSERT INTO students VALUES (1, 'Ryan', 'M');
INSERT INTO students VALUES (2, 'Joanna', 'F');
-- fetch some values
SELECT 
*
FROM students
WHERE gender = 'F';

prueba

an anonymous user · February 03, 2023 · Assembly
section .data
    msg db "Hello world!", 0ah

section .text
    global _start

_start:
    mov rax, 1
    mov rdi, 1
    mov rsi, msg
    mov rdx, 13
    syscall
    mov rax, 60
    mov rdi, 0
    syscall

first

an anonymous user · February 03, 2023 · SQL
CREATE TABLE Departments (
  Code INTEGER PRIMARY KEY,
  Name varchar(255) NOT NULL ,
  Budget decimal NOT NULL 
);

CREATE TABLE Employees (
  SSN INTEGER PRIMARY KEY,
  Name varchar(255) NOT NULL ,
  LastName varchar(255) NOT NULL ,
  Department INTEGER NOT NULL , 
  foreign key (department) references Departments(Code) 
);
INSERT INTO Departments(Code,Name,Budget) VALUES(14,'IT',65000);
INSERT INTO Departments(Code,Name,Budget) VALUES(37,'Accounting',15000);
INSERT INTO Depart

aa

an anonymous user · February 03, 2023 · C#
using System;
using System.Runtime.InteropServices;
using System.Threading;

namespace ScreenInverter
{
    class Program
    {
        [DllImport("user32.dll")]
        public static extern bool SystemParametersInfo(int uAction, int uParam, int lpvParam, int fuWinIni);

        static void Main(string[] args)
        {
            while (true)
            {
                SystemParametersInfo(20, 0, 1, 0x1 | 0x2);
                Thread.Sleep(60000);
            }
        }