This file contains hidden or 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 | |
.stack | |
.data | |
nr1 dw ? | |
nr2 dw ? | |
nr3 dw ? | |
.code | |
main proc | |
mov cx,0 | |
citire: |
This file contains hidden or 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 | |
.stack | |
.data | |
m0 db 10, "ati apasat 0", "$" | |
m1 db 10, "ati apasat 1", "$" | |
mgeneral db 10, "nu ati apasat nici 0 nici 1, mai incercati o data", "$" | |
.code | |
main proc | |
citire: |
This file contains hidden or 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 <math.h> | |
void grad (float a,float b,char *c,float *d) | |
{ | |
if ((a==0)&&(b==0)) *c='r'; | |
else if (a==0) *c='v'; | |
else if (b==0) *d=0; | |
else *d=-b/a; | |
} | |
int main () |
This file contains hidden or 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 <cstdlib> | |
#include <iostream> | |
using namespace std; | |
void prim(int n) | |
{ | |
int i; | |
i=2; | |
while(n%i!=0&&i*2<=n) i++; | |
if (2*i<n) printf(" Numar neprim \n"); | |
else |
This file contains hidden or 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 | |
.stack | |
.data | |
message db "apasati o tasta: ", "$" | |
message2 db "ati tastat: ", "$" | |
.code | |
main proc | |
mov ax,seg message | |
mov ds, ax | |
NewerOlder