Black cells in a chessboard solution codechef

Black cells in a chessboard solution codechef Problem Statement : Given nn (nn is even), determine the number of black cells in an n×nn×n chessboard. Input Format The only line of the input contains a single integer nn. Output Format Output the number of black cells in an n×nn×n chessboard. Constraints 2≤n≤1002≤n≤100 nn is even Sample Input 1  8 Sample Output 1  32 Explanation…

Read More