Truth Table Count

Truth Table Count

Easy Computer Mathematics Boolean Algebra & Logic 26 views
Explanation Complexity

Problem Statement

How many rows in truth table for n boolean variables?

Input Format

One integer n.

Output Format

One integer.

Example

3
8

Constraints

0

Input / Output Format

Input Format
One integer n.
Output Format
One integer.
Constraints
0

Examples

Input:
3
Output:
8

Example Solution (Public)

Computer Mathematics
Rows = 2^n.

Official Solution Code

Rows = 2^n.
Please login to submit solutions.
Editor
Output

                                        
Please login to submit solutions.