بتاريخ: 9 أبريل 201114 سنة comment_210611 Write a PL/SQL block that will accept a number from the user. It mustthen determine and display on the screen the factorial of the numbersfrom 1 until the entered number.Sample Output:Enter value for number: 5The factorial of 1 to 5 are:12624120 تقديم بلاغ
بتاريخ: 27 أبريل 201114 سنة comment_211156 declare n number := &n; p number := 1; i number := 1; begin for i in 1..n loop p := p*i; end loop; dbms_output.put_line('factorial of '||n||' is'||p); end eng :Mostafa Mohamed تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.