This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.model small | |
.data | |
res1 db 10,13,"Enter the bcd value: $" | |
iresult db 10,13,"Hex value is: $" | |
result db 10,13,"Ascii value is: $" | |
.code | |
mov ax,@data | |
mov ds,ax | |
lea dx,res1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define MAX 100 | |
int main(void) { | |
char data[MAX], output_data[MAX+MAX]; | |
printf("Enter the data: "); | |
scanf("%s", data); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<graphics.h> | |
#include<math.h> | |
// with math module don't forget to use '-lm' | |
// For a triangle | |
int trans_sx = 30; | |
int trans_sy = 30; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from termcolor import colored | |
import matplotlib.pyplot as plt | |
import matplotlib.animation as animation | |
class Conway: | |
def __init__(self): | |
self.N = 60 | |
self.generations = 300 | |
self.curr_board = [[0 for i in range(self.N)] for j in range(self.N)] | |
self.prev_board = [[0 for i in range(self.N)] for j in range(self.N)] |
NewerOlder