Recent programs

4.program

an anonymous user · March 30, 2020 · Fortran
program 4zadatak
integer::i,n,s,p
print*,'n='
read*,n 
p=1 
s=0 
do i=2,n,2 
p=p*i 
s=s+p 
ENDDO
print*,'s=',s 
using System;

namespace MyCompiler {
    class Program {
        public static void A(int a = 0, int b = 0)
        {
            Console.WriteLine("First");
        }
        
        public static void A()
        {

asd

asd7120 · March 30, 2020 · Assembly
section .data
    array dq 1,2,-1,-2,1
    pos dq 0
    ne dq 0
    n dq 5h
    msg1 dq "positive count is",10
    len1 equ $-msg1
    msg2 dq "negative count is",10
    len2 equ $-msg2

section .text

a1.asm

asd7120 · March 30, 2020 · Assembly
section .data
    array dq 1,2,-1,-2,1
    pos dq 0
    ne dq 0
    n dq 5h
    msg1 dq "positive count is",10
    len1 equ $-msg1
    msg2 dq "negative count is",10
    len2 equ $-msg2

section .text

ahh

an anonymous user · March 30, 2020 · Assembly
MAIN:
    MOV AX, SEG DATA
    MOV DS,AX

    mov ah, 9h                  ; msg for first number
    lea dx, msg
    int 21H

    mov ah, 1h                  ; read char
    int 21H

1

asd7120 · March 30, 2020 · Assembly
section .data
    array dq 1,2,-1,-2,1
    pos dq 0
    ne dq 0
    n dq 5h
    msg1 dq "positive count is",10
    len1 equ $-msg1
    msg2 dq "negative count is",10
    len2 equ $-msg2

section .text

sample

an anonymous user · March 30, 2020 · Assembly
section .data
    msg db "Hello !", 0ah

section .text
    global _start

_start:
    mov rax, 1
    mov rdi, 1
    mov rsi, msg
    mov rdx, 13

Mateus

an anonymous user · March 30, 2020 · NodeJS
console.log("Hello world!");

fiverr

an anonymous user · March 30, 2020 · Assembly
section .data
    name_prompt db "Enter your name: ", 0ah
   
    
    messgae_prompt db "Enter your goals for doing COSC2331 in 80 characters: "
    
    
SECTION .bss
name      RESW    1       ; reserve space for 1 byte
goal      RESW    1       ; reserve space for 1 word

aa

an anonymous user · March 30, 2020 · Fortran
program main
    print *, "سلام دنیا"
end program main

BASE_CALCULATORV2

an anonymous user · March 30, 2020 · C++
#include <iostream>
#include <cmath> 
#include <vector> 
#include <string> 
using namespace std; 
string in; 
int b1, b2, loo, fin, hol, total, as = 0; 
char e = '1'; 
vector<int> c(0);
int main() { 
    while (e != '='){ 

Stockchange

an anonymous user · March 30, 2020 · C#
using System;

namespace MyCompiler {
  public  class Stock{
        public string _name;
        public string _symbol;
        public double _previousclosingprice;
        public double _currentclosingprice;
        public Stock (string name,string symbol,double previousclosingprice,double currentclosingprice)
       {
           _name=name;

BASE_CALCULATOR

an anonymous user · March 30, 2020 · C++
#include <iostream>
#include <cmath> 
#include <vector> 
#include <string> 
using namespace std; 
string in; 
int b1, b2, loo, fin, hol, total; 
char e; 
vector<int> c(0);
int main() { 
    while (e != '='){

ejercicio7

an anonymous user · March 30, 2020 · C++
#include <iostream>

/*Nayeli Citlalli Zurita Alvarez */

using std::cout;
using std::cin;
using std::endl;

int main ()
{
    float PES;

7. Product sum

kira_369 · updated March 30, 2020 · Python
'#-----Time complexcity O(n)------------'
'#-----Space complexcity O(d)------------- d = the deepesth of the array'
'#Classic recursion question'

def productSum(array, multiplier = 1):
    sum = 0
    for k in range(len(array)):
        if type(array[k]) is list:
            sum = sum + productSum(array[k], multiplier + 1)
        else:
            sum = sum + array[k]

1.1 console

luisclaudio · March 30, 2020 · NodeJS
console.log("Hello world!");

formulario_select_respuesta.php

an anonymous user · March 29, 2020 · PHP
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Formulario control select respuesta</title>
    </head>
    <body>
        <?php
        if(!is_numeric($_POST['valor1'])||!is_numeric($_POST['valor2'])){
            echo "Debe ingresar solo valores numéricos";

adivinanumero.php

an anonymous user · March 29, 2020 · PHP
<?php
$numero=42;
if(!isset($_POST['adivinar'])){
    $mensaje="Bienvenido al juego Adivina el Número!";
}elseif(!is_numeric($_POST['adivinar'])){
    $mensaje="Debes ingresar un número!";
}elseif($_POST['adivinar']==$numero){
    $mensaje="Bien hecho, adivinaste!";
}elseif($_POST['adivinar']>$numero){
    $mensaje=$_POST['adivinar']." es muy grande, Intenta de nuevo";
}else {

adivinanumero.php

an anonymous user · March 29, 2020 · PHP
<?php
$numero=42;
if(!isset($_POST['adivinar'])){
    $mensaje="Bienvenido al juego Adivina el Número!";
}elseif(!is_numeric($_POST['adivinar'])){
    $mensaje="Debes ingresar un número!";
}elseif($_POST['adivinar']==$numero){
    $mensaje="Bien hecho, adivinaste!";
}elseif($_POST['adivinar']>$numero){
    $mensaje=$_POST['adivinar']." es muy grande, Intenta de nuevo";
}else {

adivinanumero.php

an anonymous user · March 29, 2020 · PHP
<?php
$numero=42;
if(!isset($_POST['adivinar'])){
    $mensaje="Bienvenido al juego Adivina el Número!";
}elseif(!is_numeric($_POST['adivinar'])){
    $mensaje="Debes ingresar un número!";
}elseif($_POST['adivinar']==$numero){
    $mensaje="Bien hecho, adivinaste!";
}elseif($_POST['adivinar']>$numero){
    $mensaje=$_POST['adivinar']." es muy grande, Intenta de nuevo";
}else {