Codeforces “ 996A – Hit the Lottery” solution( Bangla ) | Cpp language

**Before watching this make sure that you’ve tried enough**

#include<iostream>
using namespace std;
int main()
{
    int a;
    cin>>a;
 
    int ans = a/100;
    int left = a%100;
 
    ans+= left/20;
    left= left%20;
 
    ans+= left/10;
    left = left%10;
 
    ans+= left/5;
    left=left%5;
 
    ans+=left/1;
 
    cout<<ans;
}

 

If this solution helped you, please share this with your friends.
And if you have anything to say, let me know in the comment section.

More solutions are coming so Like our Facebook page and Subscribe to our YouTube channel to stay connected.

Leave a Comment