Recent programs

lambda - Java

informaticos89 · updated July 04, 2020 · Java
import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".
class Main {
    public static void main(String[] args) {
        Calcular sumar = (a,b) -> a+b;
        Calcular restar = (a,b) -> a-b;
        System.out.println(restar.resultado(43243,5));
   

Scratch1.js

an anonymous user · July 04, 2020 · NodeJS
console.log("Hello world!");
console.log("Hello")scratch1

Meu scanf 2

klisman · July 03, 2020 · C
#include <stdio.h>
int main(){
     int gasto1;
     int gasto2;
     int ganho;
     int total;
     
     printf("Digitar gasto1:\n");
     scanf ("%i", &gasto1);
     
     printf ("Digitar gasto2:\n");

array spiral

an anonymous user · July 03, 2020 · Java
import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".
class Main {
    public static void main(String[] args) {
        
        int m = 3;
        int n = 3;
        //int max = m > n? m: n;

hhyd

an anonymous user · July 03, 2020 · Python
print('Hello world!')

INDICATOR

an anonymous user · July 03, 2020 · Lua
menu.add_check_box("Watermark")
menu.add_color_picker("Color")
menu.add_check_box("Gradient")
menu.add_check_box("Middle")
menu.next_line()
menu.add_color_picker("First color")
menu.add_color_picker("Second color")

local fontnew = render.create_font("Segoe UI", 14, 400, true, false, false)

local function on_paint()

INDICATOR

an anonymous user · July 03, 2020 · Lua
-- Made by Immortale

local hits, misses_spread, misses_resolver = 0, 0, 0
local font = render.create_font("Verdana", 12, 500, true, true, false)

menu.add_check_box("Enable shot statistic")
menu.add_slider_int("Shot statistic position X", 0, engine.get_screen_width())
menu.add_slider_int("Shot statistic position Y", 0, engine.get_screen_height())

local function shot(shot_info)
    if shot_info.result == "Hit" then

INDICATOR

an anonymous user · July 03, 2020 · Lua
menu.add_check_box("Miss counter")
menu.add_check_box("Include spread")
menu.add_slider_int("[counter] X", 0, engine.get_screen_width())
menu.add_slider_int("[counter] Y", 0, engine.get_screen_height())

local hits, miss = 0, 0
local font = render.create_font("Verdana", 25, 900, true, true, false)

function shot(shot_info)
    local result = shot_info.result

INDICATOR

an anonymous user · July 03, 2020 · Lua
-- ui
menu.add_check_box("Enable indicators")
menu.add_check_box("Enable arrows")
menu.next_line()
menu.add_color_picker("Color of active arrows")
menu.add_color_picker("Color of active indicators")


-- font
local font = render.create_font("Segoi UI", 13, 400, true, true, true) -- u can change font of indicators here
local font_arrows = render.create_font("Arial", 30, 600, true, true, false)

1212

an anonymous user · July 03, 2020 · Lua
menu.add_check_box("Enable jitter sync")
local switch = true

local function createmove()
    if menu.get_bool("Enable jitter sync") and cmd.get_send_packet() == true then
        if switch then
            switch = false
        else
            switch = true
        end

Fatoração LU

cleivison · July 03, 2020 · C
#include <stdio.h>
#include <math.h>

#define N 4

int main() {
    int i, j, k;
    long double L[N][N], U[N][N], mCopy[N][N], mInversa[N][N], x, d[N], y[N], sum, sum1, sum2, sum3;
                           
    /*long double m[N][N] = {{1, 2, 3},
                           {0, 1, 4},

Equation ordre 2

an anonymous user · July 03, 2020 · Fortran
program Quadratic
implicit none
real a, b, c, root1, root2
real b_sq, ac4, sqrt_thing
REAL, PARAMETER :: eps = 0.0000001, E = 2.71828, PI = 3.141592
do
a=1
b=2
c=1
if ( abs ( a+b+c ) < eps ) exit
b_sq = b**2

calculadora

an anonymous user · July 03, 2020 · Python
manzana= 100
sandia=200
naranja=300
paltano=400
primer_producto = float(input("primer producto:"))
segundo producto_producto = float(input("segundo  producto:"))

Teste LU

cleivison · July 03, 2020 · C
#include <stdio.h>
#include <math.h>

#define N 4

int main() {
    int i, j, k, n;
    long double mCopy[N][N], mInversa[N][N], x, d[N], y[N];

    for (i=0; i<N; i++)
        y[i] = 0;

my java

an anonymous user · July 03, 2020 · Java
import java.util.*;
class CDMA {
	public static void main(String args[]) {
    	int a = 1;
    	int b = 0;
    	System.out.println("Inputs : a="+a+", b="+b);
    	String ak = "00110011";
    	String bk = "01100110";
    	System.out.println("\nKeys : Ak="+ak+", Bk="+bk);
    	String A = toBipolar(a);
    	String B = toBipolar(b);

5

mandalnitesh · updated July 03, 2020 · R
a=matrix(c(1,2,3,4,5,4,3,2,5,4,1,2,5,8,4,7,4,1,2,3,5,2,1,2,3),nrow=5,ncol=5);a 
x=matrix(c("x1","x2","x3","x4","x5"),nrow=5);x
b=matrix(c(7,-1,-3,5,17));b 
ainv<-solve(a);ainv
x=ainv%*%b;x
T<-t(a);T 
det(a)
eigen(a)
dim(a)
sum(diag(a)) 
rowsums(a)

student

an anonymous user · July 03, 2020 · SQL
--to create tablespace
--=======================

create table student
(name varchar(30),
class number(2),
roll_number number(20),
marks varchar(10));


select * from student;

primerEjemplo

an anonymous user · July 03, 2020 · Python
print('Hello world!')
print('hola lorito')

recursividad.c

an anonymous user · July 03, 2020 · C++
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;


struct Alumno {
	int edad;
	string apellidos;
} ;

recursividad.c

an anonymous user · July 03, 2020 · C++
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;


struct Alumno {
	int edad;
	string apellidos;
} ;