Notification texts go here Contact Us Buy Now!

PL/SQL program to find sum of digits of a number

PL/SQL program to find sum of digits of a number [solved]
Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated

write a pl/sql program to print the sum of numbers from 1 to 100 :

Code

Declare
Var1 integer;
Var2 integer;
Var3 integer;
Begin
Var1:= :var1; --Please remember In some compiler it can be "&" for example &N.
Var2:= :var2; --Please remember In some compiler it can be "&" for example &N.
Var3:=var1+var2;
Dbms_output.put_line('the sum of number is'||var3);
End;
/
  

output

the sum of number is48

Statement processed.
  

Getting Info...

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.