# URI Online Judge Solution 1018 Banknotes – URI 1018 Solution in C, C++, Java, Python and C#

### URI Online Judge Solution 1018 Banknotes – URI 1018 Solution in C, C++, Java, Python and C#

URI Online Judge Solution 1018 | Beginner

Problem Name: URI 1018 code
Problem Number : URI – 1018 Banknotes solution
Online Judge : URI Online Judge Solution
Category: Beginner
Solution Language : C,C plus plus, java, python, c#(c sharp)

### URI Solution 1018 Banknotes Code in C / URI 1018 solution in C:

`#include <stdio.h>int main(){    int notes, aux;    scanf("%d", &notes);    printf("%dn", notes);    printf("%d nota(s) de R\$ 100,00n", notes/100);    aux = (notes%100);    printf("%d nota(s) de R\$ 50,00n", aux/50);    aux = (aux%50);`

`    printf("%d nota(s) de R\$ 20,00n", aux/20);    aux = (aux%20);`

`    printf("%d nota(s) de R\$ 10,00n", aux/10);    aux = (aux%10);`

`    printf("%d nota(s) de R\$ 5,00n", aux/5);    aux = (aux%5);`

`    printf("%d nota(s) de R\$ 2,00n", aux/2);    aux = (aux%2);`

`    printf("%d nota(s) de R\$ 1,00n", aux/1);    return 0;}`

### URI Solution 1018 Banknotes Code / URI 1018 Banknotes solution in CPP:

`#include <iostream>using namespace std;int main(){    int inteiro, aux;        cin >> inteiro;        cout << inteiro <<"n";    cout << inteiro/100 << " nota(s) de R\$ 100,00n";`
`    aux = (inteiro%100);`
`    cout << aux/50 << " nota(s) de R\$ 50,00n";    aux = (aux%50);`
`    cout << aux/20 << " nota(s) de R\$ 20,00n";    aux = (aux%20);`
`    cout << aux/10 << " nota(s) de R\$ 10,00n";    aux = (aux%10);`
`    cout << aux/5 << " nota(s) de R\$ 5,00n";    aux = (aux%5);`
`    cout << aux/2 << " nota(s) de R\$ 2,00n";    aux = (aux%2);`
`    cout << aux/1 << " nota(s) de R\$ 1,00n";    return 0;}`

### URI Solution 1018 Banknotes Code / URI 1018 Banknotes solution in Java:

`import java.util.Scanner;public class Main { public static void main(String[] args) {  int notes, aux;     Scanner sc = new Scanner(System.in);     notes = sc.nextInt();     System.out.printf("%dn", notes);     System.out.printf("%d nota(s) de R\$ 100,00n", notes/100);     aux = (notes%100);     System.out.printf("%d nota(s) de R\$ 50,00n", aux/50);     aux = (aux%50);     System.out.printf("%d nota(s) de R\$ 20,00n", aux/20);     aux = (aux%20);     System.out.printf("%d nota(s) de R\$ 10,00n", aux/10);     aux = (aux%10);     System.out.printf("%d nota(s) de R\$ 5,00n", aux/5);     aux = (aux%5);     System.out.printf("%d nota(s) de R\$ 2,00n", aux/2);     aux = (aux%2);     System.out.printf("%d nota(s) de R\$ 1,00n", aux/1); }}`

### URI Solution 1018 Banknotes Code / URI 1018 Banknotes solution in  C# (C Sharp):

Demonstration:

Just implement this in coding. Since having any problem just put a comment below. Thanks

Tags: URI Online Judge Solution, URI OJ Solution list, URI Problems Solution, URI solver, URI all problem solution list, URI Banknotes code in C, URI 1018 Banknotes code in C++, URI Banknotes solution in C, URI solution, URI 1018 Banknotes solution in C,URI 1018 Banknotes solution in C++-CPP,URI 1018 Banknotes solution in C# (C sharp),URI 1018 Banknotes solution in Java,URI 1018 Banknotes solution in Python,

#### By Maniruzzaman Akash

Maniruzzaman Akash is a freelance web developer with most popular Laravel PHP frameork and Vue JS