Codxplore.com

Latest news:

Sahih al-Bukhari (সহীহ বুখারী) is a free Hadith application for android. This application is advertisement free. Download now https://play.google.com/store/apps/details?id=com.akramhossin.bukharisharif

804
Views
Hacker Rank: Day 2: Operators Solution in PHP

Hacker Rank: Day 2: Operators Solution in PHP

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 result to the nearest integer. Example: meal cost = 100 tip percent = 15 tax percent = 8 A tip of 15% * 100 = 15, and the taxes are 8% * 100
1484
Views
Hacker Rank: Day 1: Data Types Solution in PHP

Hacker Rank: Day 1: Data Types Solution in PHP

Task: Declare 3 variables: one of type int, one of type double, and one of type String.  Read 3 lines of input from stdin (according to the sequence given in the Input Format section below) and initialize your 3 variables.  Use the + operator to perform the following operations:  Print the sum of i plus your int variable on a new line. Print the sum of d plus your double variable to a
792
Views
Hacker Rank: Day 0: Hello, World Solution in PHP

Hacker Rank: Day 0: Hello, World Solution in PHP

Task: To complete this challenge, you must save a line of input from stdin to a variable, print Hello, World. on a single line, and finally print the value of your variable on a second line. Input Format: A single line of text denoting inputString (the variable whose contents must be printed). Output Format: Print Hello, World. on the first line, and the contents of inputString on the second

Subscribe Us


Follow Us