/C-Program

Two basic c program to calculate the NTH power of 2

C-Program

Two basic c program to calculate the NTH power of 2\n

The first program used “for” to calculate the NTH power of 2\n

The second program used “while” to calculate the NTH power of 2\n

I have tested these programmes, and I found that when the x >= 31 , the result is out of scope.