Programming

620 Articles 12 Followers

Equable Triangles @ Dcoder

Title: Equable Triangles Problem: An Equable Triangle is a triangle which has its area equals to the sum of its sides.  You are given with the sides of a triangle, your task is to write a code which will return 'True'. if the triangle is equable, oth...

Lochard 1 minute read 23 May 2023 0 comments $0.01

Help Cody @ Dcoder

Title: Help Cody Problem: Cody is stuck in a problem and needs your help to get out of trouble. He was given a sorted array by his teacher. After his teacher left, he mistakenly rearranged some elements of the array. Help Cody sort the array before h...

Lochard 1 minute read 20 May 2023 0 comments $0.02

The Armstrong Number @ Dcoder

Problem: An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. For example, consider the number 371. The sum of the cube of its digits is 3^3 + 7^3 + 1^3 = 27 + 343 + 1 = 371. Th...

Lochard 1 minute read 18 May 2023 0 comments $0.01

Total Expenses @ Dcoder

Problem: Joey went for shopping. The shopkeeper gives a discount of 10% if the total expense exceeds 1000 . Given total expense as input, write a program to calculate the total money Joey has to give to the shopkeeper after the discount, if discount...

Lochard 1 minute read 17 May 2023 0 comments $0.03

Buy The Bundle @ Dcoder

Problem: Jimmy wants to buy books for N students. He went to the bookshop to buy a bundle of books, each bundle has a different number of books. He wants to buy such a bundle that contains the number of books, which can be distributed equally amongst...

Lochard 1 minute read 16 May 2023 0 comments $0.01

Fare @ Dcoder

Problem: John is travelling by train, The fare of the train depends on the kilometer he traveled. For the first A kilometer, the fare is M and for the subsequent distance, it is N per kilometer. You are given total distance covered by train. Find out...

Lochard 1 minute read 9 May 2023 0 comments $0.04

Ordinal Representation @ Dcoder

Problem: Numbers can be represented in cardinal form or ordinal form. Cardinal Form : 1, 2, 3, 4, 5, 6, etc. Ordinal Form : 1st, 2nd, 3rd, 4th, 5th, 6th, etc. You will be given cardinal form of a digit. You have to print its ordinal form. Input: A si...

Lochard 1 minute read 8 May 2023 0 comments $0.07

The Beta Test Initiation @ Dcoder

Problem: Dcoder Team is working on an exciting new update in the app, but before releasing it to the public, our team has decided to test the app out on small percentage of users. This is known as the Beta Test. For a user to be eligible for a Beta T...

Lochard 1 minute read 7 May 2023 0 comments $0.01

Why Should You Learn to Code?

Coding is a skill that’s become prevalent in our world today. From STEM programs to online courses, there are more ways than ever to master this skill. What are the benefits of taking time out of your typical schedule to learn to code? Why should you...

MintDice.com 4 minute read 5 May 2023 1 comment $0.08

Dr. Primo visits ArrayCon @ Dcoder

Problem: Dr. Primo is a famous mathematician in Codeland. He is known to have numbers as his friends. He is especially in love with Prime Numbers. He goes to the city festival ArrayCon. Every time he is given an array, he tells how many prime numbers...

Lochard 1 minute read 4 May 2023 0 comments $0.02