Where does my code break

Revision en1, by nishanth.molleti9, 2019-06-19 04:46:04

I have been trying to solve this problem lately and I find that there is something wrong with it . Can someone help me solving it. https://codeforces.com/contest/656/problem/A

The code i used to solve it is attached below (in C language)

include<stdio.h>

include<math.h>

main() { double a,c; scanf("%lf",&a); if(0<=a<=35){ c=pow(2, a); printf("%.0lf",c); } }

Please help me out :)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English nishanth.molleti9 2019-06-19 04:46:04 472 Initial revision (published)