URI Online Judge Solution 1020 Age in Days – URI 1020 solution in C, C++, Java, Python and C#

URI Online Judge Solution URI Solution -Beginner

URI Online Judge Solution 1020 Age in Days – URI 1020 solution in C, C++, Java, Python and C#

URI Online Judge Solution 1020 Age in Days| Beginner
URI Problem Link – https://www.urionlinejudge.com.br/judge/en/problems/view/1020

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

URI Online Judge Solution 1020 Age in Days - URI 1020 solution in C, C++, Java, Python and C#

URI Solution 1020 Age in Days Code in C / URI 1020 solution in C:

#include <stdio.h>

int
main()
{

int
n;

scanf("%d", &n);

int
a = n / 365;
int
rA = n % 365;
int
rM = rA % 30;
int
m = rA / 30;
int
d = rM % 30;

printf("%d ano(s)n%d mes(es)n%d dia(s)n", a, m, d);

return
0;
}

URI Solution 1020 Age in Days Code / URI 1020 solution in CPP:

#include <iostream>

using namespace
std;

int
main()
{

int
n;

cin >> n;

int
a = n / 365;
int
rA = n % 365;
int
rM = rA % 30;
int
m = rA / 30;
int
d = rM % 30;

cout << a << " ano(s)" << endl << m << " mes(es)" << endl << d << " dia(s)" << endl;

return
0;
}

URI Solution 1020 Age in Days Code / URI 1020 solution in Java:

import java.util.Scanner;


public class
Main {

public static
void main(String[] args) {
int
n;

Scanner sc = new Scanner(System.in);
n = sc.nextInt();

int
a = n / 365;
int
rA = n % 365;
int
rM = rA % 30;
int
m = rA / 30;
int
d = rM % 30;

System.out.printf("%d ano(s)n%d mes(es)n%d dia(s)n", a, m, d);

}

}

URI Solution 1020 Age in Days Code / URI 1020 Age in Days solution in  Python:

URI Solution 1020 Age in Days Code / URI 1001020 Age in Days 2 solution in  C# (C Sharp):

Demonstration:

It’s also our previous code types. Just see the previous URI code demonstration – https://onlinejudgesolution.blogspot.com/2017/06/uri-online-judge-solution-1019-time.html

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 Age in Days code code in C, URI 1020 Age in Days code in C++, URI Age in days solution in C, URI solution, URI 1020 solution in C,URI 1020 Age in Dayssolution in C++-CPP,URI 1020 solution in C# (C sharp),URI 1020 Age in Dayssolution in Java,URI 1020 solution in Python,

Leave a Reply

Your email address will not be published.