Pizza cut problem ( Or Circle Division by Lines ) | C ++ program to find maximum no of pieces by given number of cuts ; Function for finding maximum pieces with n cuts . ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; int findMaximumPieces ( int n ) { return 1 + n * ( n + 1 ) / 2 ; } int main ( ) { cout << findMaximumPieces ( 3 ) ; return 0 ; }