It’s hard to say if you will get in or not. While 2,040 is a perfectly good score on its own, last year's closing rank was 2,092. But the cut off varies every year, so it’s a possibility that you may get in. You can even get into IIT Bhubaneswar in the very 1st round if luck favors. Don’t be disappointed if you can’t get in as there are also other IITs like IIT Ropar and IIT Jodhpur where you can try to get admission.
Also if you scored below 3000 in JEE Mains then you can go for IIIT Hyderabad. For CSE IIIT, Hyderabad ranks along with top IITs like IIT Bombay and IIT Delhi. So if you can secure a place in IIT Hyderabad, you should go for it. As there's a good possibility you can bag good job offers as an IITian from IIT Bombay or Delhi. Although the tag of IIT adds a certain value to your degree in the end it’s skills that matter most. So make your decision wisely.