We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
usingSystem;usingSystem.Collections.Generic;usingSystem.IO;classSolution{staticvoidMain(String[]args){inti=4;doubled=4.0;strings="HackerRank ";// Declare second integer, double, and String variables.// Read and save an integer, double, and String to your variables.// Print the sum of both integer variables on a new line.// Print the sum of the double variables on a new line.// Concatenate and print the String variables on a new line// The 's' variable above should be printed first.inti2=12;doubled2=4.0;strings2="is the best place to learn and practice coding!";Console.WriteLine(i+i2);Console.WriteLine(String.Format("{0:0.0}",d+d2));Console.WriteLine(String.Concat(s+s2));}}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 1: Data Types
You are viewing a single comment's thread. Return to all comments →
C# Day 2 Challenge
Its my first time here. Can someone advise why the complie woriks but addional test case fails when i submit this C# Day 2 challenge? Link: [https://www.hackerrank.com/challenges/30-data-types/problem?isFullScreen=true]