H

@hrantdobeepboop

mortgage calculator fr

Python
1 year ago
# INPUTNER@ GREQ "Program input"-UM ENTERNEROV # ORINAK: # 20000000 # 24 # 12 amount = int(input("Credit amount (AMD): ")) months = int(input("Duration (months): ")) annual_interest = float(input("Interest rate (%): ")) if amount <= 0 or months <= 0 or annual_interest <= 0:

erm sort

Python
1 year ago
information = { 'Hrant': {'h': 1, 's': 2, 'w': 1, 'p': 1}, 'Arame': {'h': 2, 's': 1, 'w': -2, 'p': 1}, 'Tigran': {'h': 2, 's': 1, 'w': -2, 'p': 0}, 'Alex': {'h': 2, 's': 2, 'w': 2, 'p': 1}, 'AlexF': {'h': 2, 's': 1, 'w': -2, 'p': 0}, 'Vahe': {'h': 1, 's': 1, 'w': 2, 'p': 1}, 'David': {'h': -2, 's': -1, 'w': 0, 'p': -2}, 'Gagik': {'h': -1, 's': -1, 'w': 0, 'p': -2}, 'Ruben': {'h': -1, 's': -1, 'w': 0, 'p': -2},

erm

Python
1 year ago
information = { 'Hrant': {'h': 1, 's': 2, 'w': 1, 'p': 1}, 'Arame': {'h': 2, 's': 1, 'w': -2, 'p': 1}, 'Tigran': {'h': 2, 's': 1, 'w': -2, 'p': 0}, 'Alex': {'h': 2, 's': 2, 'w': 2, 'p': 1}, 'AlexF': {'h': 2, 's': 1, 'w': -2, 'p': 0}, 'Vahe': {'h': 2, 's': 1, 'w': 2, 'p': 1}, 'David': {'h': -2, 's': -1, 'w': 0, 'p': -2}, 'Gagik': {'h': -1, 's': -1, 'w': 0, 'p': -2}, 'Ruben': {'h': -1, 's': -1, 'w': 0, 'p': -2},

gibberish generator

Python
2 years ago
import random vowels = list("aeiuo") consonants = list("bcdfghjklmnpqrstvwxyz") for i in range(16 * 4): text = "" for j in range(random.randint(4, 8)): text += consonants[random.randint(0, len(consonants)-1)] text += vowels[random.randint(0, len(vowels)-1)]

snake

C++
2 years ago
// WAIT FOR IT IT TAKES LIKE 3 SECONDS #include <iostream> #include <vector> int main() { std::vector<int> offsets = {10, 6, 3, 1, 0, 1, 3, 6, 10, 15, 19, 22, 24, 25, 24, 22, 19, 15}; int i = 0; std::string message = "BLIN MADERAAAAAAAAAA";

W message

C++
2 years ago
#include <iostream> int main() { while (true) { std::cout << "maneh is bad at c++" << std::endl; } return 0; }

manehs lame purugurum

C++
2 years ago
#include <iostream> #include <cmath> using namespace std; int main() { int a, b, c,d,e,x; cin >> a; if (a < 999 || a > 10000) cout << "no u";

program

C
2 years ago
#include <stdio.h> int main() { int n = 109; printf("%d", ((n-1)^n)+1 >> 1); return 0; }

4/5 ON AN ASSEMBLY QUESTION 💪💪💪

Assembly
2 years ago
section .data globalVar1 db 0 globalVar2 db 20 section .text global _start _start: movzx rbx, byte[globalVar1] add rbx, [globalVar2] mov rax, 60

Shift

C
2 years ago
#include <stdio.h> int main() { int n = 8; printf("%d", n>>1); return 0; }

Factorial

Assembly
2 years ago
section .data num db 5 section .bss fact resq 1 ; Use resq to reserve 8 bytes (quadword) for fact section .text global _start _start: jmp fact_loop fact_loop: mov r8, [fact]