C

@cmalanda

swap two variables without using a third variable

C
1 week ago
#include <stdio.h> int main(){ int a,b; printf("enter two numbers: "); scanf("%d%d",&a,&b); a=a+b; b=a-b; a=a-b; printf("after swapping:\n"); printf("a=%d\n", a);

영단어 역출력

C
1 week ago
#include <stdio.h> int main() { char arr1[20], arr2[20]; int cnt = 0; //cnt: 글자 수 scanf("%s", arr1); for(int i = 0; arr1[i] != '\0'; i++) cnt++; //글자 수 Array = 5

CN 4 Distace Routing Vector

C++
1 week ago
#include <iostream> #include <vector> #include <string> #include <iomanip> using namespace std; const int INF = 999999;

New.file1

MySQL
1 week ago
-- 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 val

Proyecto con async

Python
1 week ago
#core/CLI.py import logging logging.basicConfig( level=logging.INFO, format="%(asctime)s %(levelname)s %(name)s: %(message)s" ) import subprocess import typer

Proyecto con async20/10

Python
1 week ago
#core/CLI.py import logging logging.basicConfig( level=logging.INFO, format="%(asctime)s %(levelname)s %(name)s: %(message)s" ) import subprocess import typer

0hyhuhuhuh2010

C++
1 week ago
#include<iostream> #include<cmath> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a==10) cout<<a; else if(a==9) cout <<b; else cout <<c;

실습12009

C
1 week ago
#include <stdio.h> int main() { int input; int hour; int min; int sec; printf("정수를 입력하세오: ");

Proyecto con async

Python
1 week ago
#core/CLI.py import logging logging.basicConfig( level=logging.INFO, format="%(asctime)s %(levelname)s %(name)s: %(message)s" ) import subprocess import typer

practicando c

C
1 week ago
#include <stdio.h> #include <string> int main() { /*int numero; int doble; int triple; printf("Ingresar un numero entero: "); scanf("%d",&numero);

Inserción

C
1 week ago
#include <stdio.h> #include <time.h> // Función que implementa el algoritmo de inserción del archivo 02-2Insercion.pdf void insercion(int array[], int tam) { int i, j, aux; for (i = 1; i < tam; i++) { aux = array[i]; j = i -

hyhyh

C++
1 week ago
#include <iostream> #include <string> int main() { std::cout << "Hello world!" << std::endl; std::cout << "stop" << std::endl; std::cout << "unfortunatly" << std::endl; std::cout << "next time , you have to take some vegetable" << s

Trabalhar com a Manipulação de Constraints no banco

MySQL
1 week ago
CREATE TABLE funcionarios ( id INTEGER PRIMARY KEY AUTO_INCREMENT, nome VARCHAR(100) NOT NULL, departamento VARCHAR(50) NOT NULL, salario DECIMAL(10, 2) NOT NULL, data_admissao DATE ); INSERT INTO funcionarios (nome, departament

hyhyhyhy

SQL
1 week ago
-- create a table CREATE TABLE students ( id INTEGER PRIMARY KEY, name TEXT NOT NULL, gender TEXT NOT NULL ); create table hospitals ( id integer primary key , name text not null, town text not null

Escribir sin contar bytes manualmentennnn

Assembly
1 week ago
; uso de equ para definir valores STDIN equ 0 STDOUT equ 1 STDERR equ 2 SYS_READ equ 0 SYS_WRITE equ 1 SYS_EXIT equ 60

2D Unit Vector Calculation

Octave
1 week ago
xi = input('xi: ') yj = input('yj: ') x = input('x: ') y = input('y: ') v = xi + yj denom = sqrt((x^2) + (y^2) u = v/denom

2D Unit Vector Calculation

Octave
1 week ago
xi = input('xi: ') yj = input('yj: ') x = input('x: ') y = input('y: ') v = xi + yj denom = sqrt((x^2) + (y^2) u = v/denom

Estructuras de repetición (bucles)20/10jjjjkkkk

C++
1 week ago
/* ========================================================================= PROGRAMA : CRONOMETRO (formato HH : MM : SS) DESCRIPCION: Recorre desde 00 : 00 : 00 hasta 23 : 59 : 59 utilizando las tres estructuras ciclicas:

Data Structure & Algoryth20/9

C++
1 week ago
#include <iostream> using namespace std; struct Students{ int idnumber; string fullname; int age ; int town; string state; }; int main() {

Ejercicio 03kkkk

C
1 week ago
/* Andrade Lopez Alejandra Grupo 307 Informática Equipo 02 */ #include <stdio.h> int main() { int a, b;