1)strong number
1 declare
2 n number(3);
3 fact number(3):=1;
4 rem number(3);
5 m number(3);
6 sum1 number(3):=0;
7 begin
8 dbms_output.put_line('enter a number');
9 n:=&n;
10 m:=n;
11 while(n>0) loop
12 rem:=mod(n,10);
13 for i in 1..rem loop
14 fact:=fact*i;
15 end loop;
16 sum1:=sum1+fact;
17 n:=trunc(n/10);
18 fact:=1;
19 end loop;
20 if(sum1=m) then
21 dbms_output.put_line(m' IS STRONG NUMBER');
22 else
23 dbms_output.put_line('IT IS NOT STRONG NUMBER');
24 end if;
25* end;
Chat with our AI personalities
What is the difference between strong and brave
Well, darling, number 19 is as prime as a fine wine. It can't be divided by anything other than 1 and itself, making it a prime number. So, rest easy knowing that 19 is standing strong in the prime club, not messing around with any composite nonsense.
Well, honey, 5.32 as a mixed number in simplest form is 5 16/25. Just divide the decimal part by 0.04 to get 16/25. Don't worry, I won't judge if math isn't your strong suit.
Bases are pH of 8 or higher. A strong base is usually considered 11 - 14
No, it is not.