42 0 285KB
LICEUL TEORETIC “SOLOMON HALITA”
PROBLEME DE INFORMATIC A REZOLVATE ALGORITM SI PROGRAM C++ CLASA a IX-a
2011
1.Ecuatia de gradul I Algoritm: start citeste a,b daca a=0 atunci daca b=0 atunci tipareste "x orice numar real" altfel tipareste "ecuatie imposibila" sfarsit daca altfel tipareste "x="-b/a sfarsit daca stop Program: #include #include using namespace std; int a,b; int main() { couta; coutb; if(a==0) if(b==0) cout