Recent programs

nome_idade

an anonymous user · June 15, 2021 · Python
nome = input('Nome: ')
idade = input('Idade: ')
print('Seu nome é '+nome)
print('Sua idade é '+idade+' anos.')

Test

an anonymous user · June 15, 2021 · SQL
-- create a table
CREATE TABLE Salary (ID int,Salary int);
-- insert some values
INSERT INTO Salary (ID, Salary) VALUES (1,1000);
INSERT INTO Salary (ID, Salary) VALUES (2,7000);
INSERT INTO Salary (ID, Salary) VALUES (3,4500);
INSERT INTO Salary (ID, Salary) VALUES (4,3900);
INSERT INTO Salary (ID, Salary) VALUES (5,2300);
INSERT INTO Salary (ID, Salary) VALUES (6,1800);
INSERT INTO Salary (ID, Salary) VALUES (7,1600);
INSERT INTO Salary (ID, Salary) VALUES (8,9800);

pos_neg

an anonymous user · June 15, 2021 · Assembly
section .data
    
    pmsg db 10,"Postive numbers: "
    p_len equ $-pmsg
    
    nmsg db "Negative numbers: "
    n_len equ $-nmsg
        
    array dq 33,-45,23,-56,-23
    n equ 5

Hex2BCD

Purnima_Chandan · June 15, 2021 · Assembly
section .data
    msg db "Hello world!", 0ah
    
    ermsg db 10,"Enter valid HEX no: ",10
    ermsg_len equ $-ermsg
    
    emsg db 10,"Enter the Hex no: ",10
    emsg_len equ $-emsg
    
    bmsg db 10,"Your BCD equivalent is:  ",10
    bmsg_len equ $-bmsg

media

an anonymous user · June 15, 2021 · C
#include <stdio.h>
#include <stdlib.h>

int main() {
    int a, b;
    scanf ("%d %d", &a, &b);
    double media;
    media = (a + b)/2.0;
    printf ("A média de %d e %d é %.1f\n", a, b, media);
    return 0;
}

GDTR

Purnima_Chandan · June 15, 2021 · Assembly
;*****************************************************
section .data
rmodemsg db 10,"Processor is in Real Mode"
rmsg_len equ $-rmodemsg

pmodemsg db 10,"Processor is in Protected Mode"
pmsg_len equ $-pmodemsg

gdtmsg db 10,"GDT Contents are::"
gdtmsg_len equ $-gdtmsg

Employee

an anonymous user · June 15, 2021 · 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';

b

an anonymous user · June 15, 2021 · SQL
create table client_master
( client_no varchar2(6),
name    varchar2(20),
address1 varchar2(30),
address2 varchar2(30),
city    varchar2(15),
state    varchar2(15),
pincode number(6),
bal_due number(10,2));

insert into client_master values('0001', 'Ivan','','', 'Bombay', 'Maharashtra',400054, 15000);

1

an anonymous user · June 15, 2021 · C
#include<stdio.h>
int main()
{
    int n,n1;
    printf("WELCOME IN THE QUIZ GAME\n");
    printf("ENTER ON WHICH TOPIC YOU WANT TO PLAY QUIZ\n");
    printf("PRESS 1 FOR GK QUIZ\nPRESS 2 FOR GK MATHS\nPRESS 3 FOR SCIENCE QUIZ\nPRESS 4 FOR REASONING QUIZ\n");
    scanf(" %d ",&n);
    switch(n)
    {
        case 1:

f

an anonymous user · June 15, 2021 · SQL
create table client_master
( client_no varchar2(6),
name    varchar2(20),
address1 varchar2(30),
address2 varchar2(30),
city    varchar2(15),
state    varchar2(15),
pincode number(6),
bal_due number(10,2));

insert into client_master values('0001', 'Ivan','','', 'Bombay', 'Maharashtra',400054, 15000);

student

an anonymous user · June 15, 2021 · 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';

student

an anonymous user · June 15, 2021 · 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';
section .data
	nline		db	10,10
	nline_len:	equ	$-nline
     
	mmsg 	db 	10,"CALCULATED MEAN 		: "
    mmsg_len 	equ 	$-mmsg
    
    sdmsg 	db 	10,"CALCULATED STANDARD DEVIATION	: "
    sdmsg_len 	equ 	$-sdmsg
    
    vmsg 	db 	10,"CALCULATED VARIANCE 		: "

j

an anonymous user · June 15, 2021 · SQL
create table client_master
( client_no varchar2(6),
name    varchar2(20),
address1 varchar2(30),
address2 varchar2(30),
city    varchar2(15),
state    varchar2(15),
pincode number(6),
bal_due number(10,2));

insert into client_master values('0001', 'Ivan','','', 'Bombay', 'Maharashtra',400054, 15000);

b

an anonymous user · June 15, 2021 · SQL
create table client_master
( client_no varchar2(6),
name    varchar2(20),
address1 varchar2(30),
address2 varchar2(30),
city    varchar2(15),
state    varchar2(15),
pincode number(6),
bal_due number(10,2));

insert into client_master values('0001', 'Ivan','','', 'Bombay', 'Maharashtra',400054, 15000);

Prueba

an anonymous user · June 15, 2021 · Fortran
program principal
implicit none
	!Rutina principal 
	real (kind=8)::X,Y
	real(kind=8)::Psup(10),Tsis(10)
	integer::i
	X=1.785959745361978
	Y=-6.242012023925781
	Tsis(1)=278.15
	Tsis(2)=283.15
	Tsis(3)=288.15

f

an anonymous user · June 15, 2021 · SQL
create table client_master
( client_no varchar2(6),
name    varchar2(20),
address1 varchar2(30),
address2 varchar2(30),
city    varchar2(15),
state    varchar2(15),
pincode number(6),
bal_due number(10,2));

student

an anonymous user · June 15, 2021 · SQL
-- create a table
CREATE TABLE students (
  id INTEGER PRIMARY KEY);
-- insert some values
INSERT INTO students VALUES (1);
INSERT INTO students VALUES (2);
-- fetch some values
SELECT * FROM students;
alter table students add column name varchar;
DESCRIBE students;
section    .data
	nline	db	10,10
	nline_len	equ	$-nline
	
	ano		db	"Enter 5, 64-bit Hex no ", 10 
	ano_len	equ	$-ano
	
	arr64	times 5 dq 0h	
	n		equ	5

	pmsg		db	10,10,"The no. of Positive elements from 64-bit array :	"

wqwe

an anonymous user · June 15, 2021 · PHP
<?php

$sIPAddr = "185.169.134.59";                                                         // IP address of the server
$iPort = 7777;                                                                  // Server port.
$sPacket = "";                                                                  // Blank string for packet.
 
$aIPAddr = explode('.', $sIPAddr);                                              // Exploding the IP addr.
 
$sPacket .= "SAMP";