الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ساعدونا وبنساعدكم

Featured Replies

بتاريخ:

هلا وغلا :D :rolleyes:
ممكن حد يشرحلي هالسؤال مع الحل واكون ممنونه له بطول فتره دراستي

Question 1: Create a PL/SQL block that will accept a number from the user. The block will call


a procedure that will display in the screen all the “ODD” numbers from 1 until the given number
by the user and total number of “ODD” numbers. (5 marks)
Example: if the user enters 5, then the output that will be 1,3,5 and total is 3.
Note: You have to create both the PL/SQL block that will call a procedure and the procedure
itself.
Question 2

بتاريخ:

السلام عليكم.

ال procedure هو كالآتي:

create procedure get_odd(top number)
is
counter number(10):=0;
total number(5):=0;
begin loop
if mod(counter,2)<>0
then
dbms_output.put_line(counter);
total:=total+1;
end if;
counter:=counter+1;
exit when counter>top;
end loop;
dbms_output.put_line('The tatal is '||total);
end;



أما ال pl/sql block هو:


begin get_odd(&the_given_number);
end;

بتاريخ:
  • كاتب الموضوع

مشكور اخوي ع الرد بس لو سمحت ما يطلع توتل الا رقام بنفس النموذج اللي موجود في السؤال :rolleyes:

بتاريخ:
Example: if the user enters 5, then the output that will be 1,3,5 and total is 3.


الواضح من السؤال أنه إذا تم إدخال الرقم (5) فإن الناتج يكون (1,3,5) ومجموع عدد هذا الناتج هو ثلاثة أرقام. المقصود بالمجموع هو عدد النواتج من هذه العمليه وليس العدد الذي أدخله المستخدم (هذا ما فهمته من الtask)، وهذا هو ما يقوم به الإجراء السابق. أما إذا كان لكي رأي آخر أو أردتي عمل تعديل معين فأخبريني به.

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.