Tag: tutorials

C# Program to add two integers

Problem Write a program in C# to add two integers and display the result on the screen. C# Program to add two integers Output Enter the first number1 Enter the second number2 result 3

C Program to check if a number is odd or even

Problem Write a program in C language to check whether a given number is even or odd. How to check if a Number is Odd or Even in C ? An integer that is divisible by 2 is an even number and that is not divisible by 2 is an odd number. Example of even number is 2 , 4, 12 etc. Example of an…

C Program to Swap two Numbers without using temporary variable

Problem Write a program in C language to swap two numbers without using temporary variable and display the result in the screen. How to Swap two numbers in C without using temporary variable? Output Abundantcode – Swap two numbers without using temporary variable  Enter First Number: 1                                Enter Second Number: 7                                  FirstNumber = 7.00                                   SecondNumber = 1.00

Developing a Java program – Hello World

There are lot of IDE options for the developers to create a java application . In this article , we will use Jet brains IntelliJ IDEA Community edition of the IDE to develop the Java console application. Developing Java program in IntelliJ IDEA 1. Download and install Jet brains IntelliJ IDEA Community edition . Make sure you have the Java (JDK) installed on your PC…

How to get the Machine Name from a .NET Application using C# ?

You can use the MachineName property defined in the System.Environment class in order to get the Machine Name from your .NET Application. How to get the Machine Name from a .NET Application using C# ? Here’s a code sample demonstrating how to do it. This should display the machine name. The output of the program would be The Machine Name is Abundantcode-LT

How to run the Universal App outside Visual Studio in Windows 10 ?

The Windows Store App built using the Universal App template in Visual Studio 2013 produces the .exe file which is available in the bin folder but when you double click on this exe folder , you will get an error message stating that “This application can only run in the context of an app container.” How to run the Universal App outside Visual Studio in…

C Program to find the LCM of two numbers

Problem Write a program in C to find the LCM(Lowest common multiples) of the two numbers given by the user. How to find the LCM of two numbers in C ? Lowest common multiples of two integers refers to the smallest numbers that is perfectly divisble by both the numbers given as input where the value of the remainder is zero. Here’s a program in…