Beecrowd URI Problem 1018 - Banknotes Solution in C Language

IN the section of beecrowd URI Beginner problems there has a problem in 1018 position called banknotes.
In that problem you have to make a programme which can scan the value of a currency and tell the user how much notes you need to break all in equal note amount.

HERE I AM GIVING THE SOLUTION OF URI BEECROWD 1018 PROBLEM BANKNOTWS IN C LANGUAGE.

Beecrowd URI Problem 1018 - Banknotes Solution in C Language


Beecrowd All Problem Solutions List

URL BEECROWD 1018 BANKNOTES SOLUTION IN C

1018 BANKNOTES SOLUTION IN C LANGUAGE


// Author: Rayhan Hosen Refat
#include <stdio.h>
int main()
{
    int N;
    scanf("%d", &N);
    printf("%d\n", N);
    printf("%d nota(s) de R$ 100,00\n", N/100);
    N %= 100;
    printf("%d nota(s) de R$ 50,00\n", N/50);
    N %= 50;
    printf("%d nota(s) de R$ 20,00\n", N/20);
    N %= 20;
    printf("%d nota(s) de R$ 10,00\n", N/10);
    N %= 10;
    printf("%d nota(s) de R$ 5,00\n", N/5);
    N %= 5;
    printf("%d nota(s) de R$ 2,00\n", N/2);
    N %= 2;
    printf("%d nota(s) de R$ 1,00\n", N);
    return 0;
}