ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

What is the output for the next code?

 class trix 

 {

     int act(int n) 

     {

         int result;

         if (n ==1)

         return1;

         result = act(n -1) * n;

         return result;

     }

 } 

 class Output 

 {

     static void main(String args[]) 

     {

         trix obj = new trix() ;

         Console.WriteLine(obj.act(7)*(2));

     }

 }

 

user-image
تم إضافة السؤال من قبل Nabil Rageh , Technical Support Manager , DenTech for communication and Information Technology
تاريخ النشر: 2017/02/18
Ahmed Gamal Soliman
من قبل Ahmed Gamal Soliman , Senior java devoloper , Hideleco

I dont understand class output but this is number of power class

And output is n^ p

Here.................................................................................

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟