cs_domxaline
Messages postés327Date d'inscriptionjeudi 21 août 2008StatutMembreDernière intervention10 mai 2012
-
27 févr. 2012 à 17:53
cs_Julien39
Messages postés6414Date d'inscriptionmardi 8 mars 2005StatutModérateurDernière intervention29 juillet 2020
-
27 févr. 2012 à 21:23
bonjour
j'ai un pb pour écrire ce prgramme de maths quelqu'un peut m'aider svp
A set of two linear equations with two unknowns x_1 and x_2 is given below:
ax_1 + bx_2 = m
cx_1 + dx_2 = n
The set has a unique solution
x_1=(md-bn)/(ad-cd)
x_2= (na-mc)/(ad-cd)
Provided the denominateur ad -cd is not equal to zero.
Write a program that will read the values of contants a, b, c, d, m and n and
compute the values of x_1 and x_2
An appropriate message should be printed if ad -cd = 0.
merci d'avance