Tag: tutorials
C# Program to print the sum of two numbers
Problem Write a program in C# to add two numbers and display the result in copnsole window. How to print the sum of two numbers in C# ? Output Abundantcode.com coding sample 35
Python Program to display "Hello, World!"
Problem Write a program in Python to display “Hello, World!” on the screen. Python Program to display “Hello, World!” in Console Window. This is a simple Python program that displays “Hello, World!” on the console window. Output Hello, World! The above Python program uses the print() function to display the Hello,World! string to the screen. Note that the strings are enclosed inside the single quotes…
Ruby Program to display "Hello, World!"
Problem Write a program in Ruby to display “Hello, World!”. Ruby Program to display “Hello, World!” This is a simple Ruby program that displays “Hello, World!”. Output
Sending SMS from a Windows Phone 8.1 App
Do you want to send SMS from your Windows Phone 8.1 App ? . You can use the ChatMessage class in Windows Runtime to do it. Sending SMS from a Windows Phone 8.1 App Here’s a code that demonstrates how to send SMS from a Windows Phone 8.1 App .
Java – How to decode string from Hexadecimal and Octal to Integer in Java ?
Problem Statement You need to decode a string from hexadecimal to integer in java as well as octal to integer. Solution Use the decode method defined in the Integer class to decode an hexadecimal and octal number to integer as shown below. The output of the above program is 255 46
FSharp Interactive Commands
FSharp Interactive UI includes few good number of commands which can be used by the F# Developers . Below are some of the FSI Commands which can be used by the developers. FSharp Interactive Commands Cancel Interactive Evaluation – This option cancels the execution of the FSI . Reset Interactive Session – This option resets the execution of the current FSI . Cut – This…
C Program to find the Factorial of a Given Number
Problem Write a program in C programming language to find the factorial of a given number and display it on the screen. How to find the factorial of a Number in C? The factorial of a number is generally specified as follows N! = 1*2*3*4… N This applies only for the positive number. The factorial of 0 is considered to be 1. Here’s a program…
Java – How to Check if integer is multiple of a number?
Problem Statement You need to check if the integer number is a multiple of a number in Java. Solution Use the modulus operator and check the remainder to find it out. Below is a sample code snippet demonstrating how to find if the number is a multiple of 4.
How to Concatenate Strings in C# using LINQ?
Assume that you have an array/List of string which needs to be concatenated. One can concatenate strings using + operator, StringBuilder etc. . . . How about concatenating strings using LINQ? Below is a sample source code that demonstrates how to concatenate strings in C# using LINQ? How to Concatenate Strings in C# using LINQ?
C program to reverse a number
Problem Write a program in C to display the reverse of a number. The below program takes the input from the user in the form of an integer number and uses the while loop until the number becomes o. How to reverse a number in C ? Output Abundantcode.com coding sample Enter a number: 786543 Reverse Number = 345687
How to Declare an Octal literal in Java ?
Problem Statement You want to declare an octal literal in Java. Solution Prefix the value with 0. A literal that contains leading zero is an octal number. The output of the above program will be 8 21
Java Program to display "Hello, World!"
Problem Write a program in Java to display “Hello, World!” on the screen. Java Program to display “Hello, World!” in Console Window. This is a simple Java program that displays “Hello, World!” on the console window. Output Hello, World!