السلام عليكم ورحمة الله
اتمنى يكون الجميع بصحة وعافية .. وارجو مساعدتي لحل سؤال محير لي كـ مبتدأ :
( The Question : (Counting positive and negative numbers and computing the average of numbers
write a program that reads an unspecified number of integers, determines how many positive and negative values have been read, and computes the total and average of the input values (not counting zeros). your program ends with the input 0 . Display the average as a floating-point number .
مع العلم بأن الاخراج سيكون :
Enter an int value, the program exits if the input is 0: 1 2 -1 3 0 The number of positives is 3 The number of negatives is 1 The total is 5 The average is 1.25
ولكن انا بحاجة لشرح كيفية كتابة البرنامج وخطواته مع كل الشكر لكم
