![]() |
飘逸的饭卡 · 小米生态链品牌咖啡起好磨豆机电动家用小型平刀 ...· 5 月前 · |
![]() |
紧张的小熊猫 · 大兴机场城市航站楼年度累计服务旅客突破50万 ...· 7 月前 · |
![]() |
文雅的小蝌蚪 · 伦敦大学眼科学教授:15分钟治疗,长期控制眼 ...· 7 月前 · |
![]() |
伤情的刺猬 · 一把藏剑,见证了汉藏民族团结_西藏头条网· 9 月前 · |
python 缂栫▼璇█ django plsql |
https://www.geeksforgeeks.org/print-all-even-numbers-from-1-to-n-in-pl-sql/ |
![]() |
爱逃课的牛腩
1 年前 |
-- Display all even number from 1 to n
DECLARE
-- Declare variable num
num NUMBER(3) := 2;
sum1 NUMBER(4) := 0;
BEGIN
WHILE num <= 5 LOOP
-- Display even number
dbms_output.Put_line(num);
-- Sum of even numbers
sum1 := sum1 + num;
-- Next even number
num := num + 2;
-- End loop
END
LOOP;
-- Display even number
dbms_output.Put_line(
'Sum of even numbers is '
|| sum1);
END
;
|
Unlock the Power of Placement Preparation!
Feeling lost in OS, DBMS, CN, SQL, and DSA chaos? Our
Complete Interview Preparation
Course is the ultimate guide to conquer placements. Trusted by over 100,000+ geeks, this course is your roadmap to interview triumph.
Ready to dive in? Explore our Free Demo Content and join our
Complete Interview Preparation
course.
![]() |
伤情的刺猬 · 一把藏剑,见证了汉藏民族团结_西藏头条网 9 月前 |