1 2 3 4 5 6
//Example 1.2 clc; clear; n=8; // given no of flip flops max_count = 2^n -1 ; printf("Maximum count = %d",max_count);