반응형

30 Days of Code 4

[Kotlin] Day 3: Intro to Conditional Statements (HackerRank - 30 Days of Code)

Objective In this challenge, we learn about conditional statements. Check out the Tutorial tab for learning materials and an instructional video. Task Given an integer, , perform the following conditional actions: If is odd, print Weird If is even and in the inclusive range of to , print Not Weird If is even and in the inclusive range of to , print Weird If is even and greater than , print Not W..

[Kotlin] Day 2: Opterators (HackerRank - 30 Days of Code)

Objective In this challenge, you will work with arithmetic operators. Check out the Tutorial tab for learning materials and an instructional video. Task Given the meal price (base cost of a meal), tip percent (the percentage of the meal price being added as tip), and tax percent (the percentage of the meal price being added as tax) for a meal, find and print the meal's total cost. Round the resu..

[Kotlin] Day 0: Hello, World. (HackerRank - 30 Days of Code)

Objective In this challenge, we review some basic concepts that will get you started with this series. You will need to use the same (or similar) syntax to read input and write output in challenges throughout HackerRank. Check out the Tutorial tab for learning materials and an instructional video! Task To complete this challenge, you must save a line of input from stdin to a variable, print Hell..

반응형