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 <iostream> | |
using namespace std; | |
int main() { | |
// Cel mai mare si cel mai mic numar prim | |
int i, j, n,m,temp,copie,s,prim_mic,prim_mare; | |
prim_mic = INT_MAX; | |
prim_mare = INT_MIN; | |
bool necrescator; | |
bool prim; |
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 <iostream> | |
#include <string> | |
using namespace std; | |
int main() { | |
int n,m,v,w,a,b; | |
string str; | |
bool egale; | |
cin >> n >> m; | |
v = n; |
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 <iostream> | |
using namespace std; | |
int matrice[50][50],l,c,k,j; | |
int main() { | |
cout << "Introduceti numarul de linii: "; | |
cin >> l; | |
cout << "\nIntroduceti numarul de coloane: "; | |
cin >> c; |
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 <iostream> | |
using namespace std; | |
int main() { | |
int *q, *p, *r, k,y,l,c,total, matrice[100][100]; | |
cout << "Introduceti liniile si coloanele matricelor: "; | |
cin >> l >> c; | |
total = l * c; | |
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 <iostream> | |
using namespace std; | |
int main() { | |
int a,n,i, nr_afisare, nr_divizori; | |
nr_divizori = 1; | |
n = 0; | |
a = 0; | |
nr_afisare = 0; | |
while (n>= 0) { |