Posts

Hackerrank Day 2 Operators 30 days of code solution

  using  System.CodeDom.Compiler; using  System.Collections.Generic; using  System.Collections; using  System.ComponentModel; using  System.Diagnostics.CodeAnalysis; using  System.Globalization; using  System.IO; using  System.Linq; using  System.Reflection; using  System.Runtime.Serialization; using  System.Text.RegularExpressions; using  System.Text; using  System; class  Result {      /*      * Complete the 'solve' function below.      *      * The function accepts following parameters:      *  1. DOUBLE meal_cost      *  2. INTEGER tip_percent      *  3. INTEGER tax_percent      */      pub...

Hackerrank Day 1 Operators 30 days of code solution

  using  System; using  System.Collections.Generic; using  System.IO; class  Solution {      static   void  Main(String[] args) {          int  i =  4 ;          double  d =  4.0 ;          string  s =  "HackerRank " ;          int  a;  double  b= 0.0 ;  string  t;              a= Convert.ToInt32(Console.ReadLine());         b=Convert.ToDouble(Console.ReadLine());         t= Console.ReadLine();                 Console.WriteLine(i+a);      ...

C# program to print sum of square of even numbers

Image
                                               C# program to print   sum of square of even numbers Example:- Print sum of square of even numbers up to 5 Output :- 20 Explanation:-   2*2+4*4

C# Programs to find factorial (using recursion)

Image
                                              C# Programs to find factorial (using recursion) Example:-  Input :- 5 Output:- 120

C# print table using recursion

Image
                                                C# print table using recursion