In a university, only 3 subjects are taught viz: English, Mathematics, and Science
you are given 7 integers A, B, C, D, E, F, and G
A denotes the number of students studying English
B denotes the number of students studying Maths
C denotes the number of students studying Science
D denotes the number of students studying English & Science
E denotes the number of students studying Maths & English
F denotes the number of students studying Maths & Science
G denotes the total number of students
You are to write a function, that given A, B, C, D, E, F, and G, returns the number of students studying all 3 subjects.
Thank you in anticipation.
Comments
Leave a comment