أبــو الــريــم
Well-Known Member
- تاريخ التسجيل
- 1 أكتوبر 2009
- المشاركات
- 142
- المجموعة
- ذكر
- الدفعة الدراسية
- معلومة خاصة
- الكلية
- كلية الهندسة
- التخصص
- Mechanical Engineering
تسجيل حضور .
int c = 14, N = 1;
while (c >= 1)
{
cout << c << "\t";
if ( c % 2 == 1 )
{
N *= c;
cout << N << endl;
}
else
cout << '*' << endl;
c -= 3;
}
int k = 1,a = 10;
while ( k <= 5)
{
if (k / 3 == 2)
a *= 2;
if (a % 2 == 0)
a+=2;
else
a+=1;
cout << a << endl;
++k;
مرحبا : )
غدًا الإمتحان وعندي بعض الاستشكالات ، بدايةً هذي أسألة ouput
كيف أفهم كيفية التعاطي مع مثل هالمسألة ؟ لما يكون عندي لوب داخله إف ستيتمنتس وهلم جرا
أي مساعدة مهما كانت أقدرها جدا
PHP:int c = 14, N = 1; while (c >= 1) { cout << c << "\t"; if ( c % 2 == 1 ) { N *= c; cout << N << endl; } else cout << '*' << endl; c -= 3; }
وكذلك هذه :
PHP:int k = 1,a = 10; while ( k <= 5) { if (k / 3 == 2) a *= 2; if (a % 2 == 0) a+=2; else a+=1; cout << a << endl; ++k;
14 *
11 11
8 *
5 55
2 *
العفوا حاضرين اخياخي قلم وقافية ما قصرت
شكرا جزيلاً :d
+ما عليك راح أعور لك راسك بالاستفسارات في الايام القادمة
Jk
شكرا مرة أخرى
احتاج حل السؤال بالجافا
A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one liter of milk is $0.38, and the profit of each carton of milk is $0.27. Write a java program that does the following:
•Prompts the user to enter the total amount of milk produced in the morning.
•Outputs the number of milk cartons needed to hold milk (Round your answer to the nearest integer).
•Outputs the cost of producing milk.
•Output the profit for producing milk