عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 01-05-2010, 11:48 PM   #4

تجيكـ الأيام

جامعي

 
تاريخ التسجيل: Jul 2008
نوع الدراسة: تحضيري علمي خطة أ
الجنس: أنثى
المشاركات: 29
افتراضي رد: [cpcs 202 - برمجة 1] لديك سؤال , واجبات , شيء غير مفهوم ,,, تفضل هنا , موضوع مفيد

1-Write a program that reads a number from a user and give me the sum of the odd and the sum of even number?

Enter a number:1254
The sum of even number= 6
The sum of odd number=6
----------------------------

2-Program ( Average, Minimum and Maximum Calculation):
Write program that let user to enter positive float values from the keyboard when prompted by the program. To signal end of input the user enters a negative integer. When data entry has terminated the program should output the minimum value entered, the maximum value entered and the average of the positive values entered. If there is no data entry (the user enters a negative number initially) then the program should output a message indicating that no data has been entered.
بلغة الـسي

 

تجيكـ الأيام غير متواجد حالياً   رد مع اقتباس