Join Regular Classroom : Visit ClassroomTech

IBM Volume of Pizza Slice Solution | CodeWindow.in

float v=0;
   float pie = 3.14;
   if(thickness>0 && thickness<=2)
   {
       if(radius>0 && radius<=20)
       {
           if(angle>0 && angle <=360)
           {
               v = angle*thickness*pie*radius*radius;
               v = v/360;
               cout<<round(v);
           }
       }
   }