Programming Blog

This blog is about technical and programming questions and there solutions. I also cover programs that were asked in various interviews, it will help you to crack the coding round of various interviews

Tuesday 6 March 2018

Even number plsql

   PLSQL code to check that the given number is even or not.

declare
 num1 number;
BEGIN
 num1 := &enter_number;  --to take input from user
    if MOD(num1,2)=0
      then
       dbms_output.put_line('Number is even');
    else 
       dbms_output.put_line('Number is not even');
  end if;
 
end;

No comments:

Post a Comment