You are here: Home / Topics / Page / 3

C# program to swap two numbers without using temporary variable

Filed under: C#
Here you will find an algorithm and program in C# programming language to swap 2 numbers without using any third or temporary variable.Swapping two number : Swap two numbers means exchange the values of two variables with each other. Suppose we are given 2 numbers num1 = 10 and num2 = 20 and we have

C# Program to Find the Sum of Digits in a Given Number

Filed under: C#
Here you will find an algorithm and program in C# programming language to find the sum of digits in number. Now let us understand this.Explanation : Suppose we are having number 12548 and we have to calculate the sum of digits in the given number, so here we have the following digits 1, 2, 5, 4, 8 a

C# Program to Count the Number of Digits in a Number

Filed under: C#
Here you will find an algorithm and program in C# programming language to count number of digits in a number. First let us understand this.Explanation : Suppose an input number is given as 12341 then the output will be 5 as there are 5 digits in the given number and digits are 1, 2, 3, 4, 1.Algorith

C# Program to Check Whether the Given Year is Leap Year or Not

Filed under: C#
Here you will find an algorithm and program in C# programming language to check whether the given year is leap year or not. First let us understand what is leap year?Explanation : A leap year is a calendar year that contains an additional day added to keep the calendar year synchronized. A leap year

C# program to check whether the given number N is even or odd

Filed under: C#
Here you will find an algorithm and program in C# programming language to check whether the given number is even or odd number. First let us understand what is even number and odd number.Explanation : If the number is divisible by 2 then the number is even number and if the number is not divisible b

C# Program to Display Hello World on Screen

Filed under: C#
Here you will find an algorithm and program in C# programming language to print Hello World on screen. The "Hello World" program is the first step towards learning any programming language and also one of the simplest programs you will learn. All you have to do is display the message "Hello World" o

Program 2 to create Applet with param tag in Java

Filed under: Java
//  Program to create Applet with param tag.import java.awt.*;import java.applet.Applet;/*<applet  code="AppletTest3.class" width="300" height="60"><param name="msg" value="Let's learn Applet.">  </applet>*/public class AppletTest3 extends Applet {String msg = "

Program to create Applet with param tag in Java

Filed under: Java
// Program to create Applet with param tag.import java.awt.*;import java.applet.Applet;/*<applet code="AppletTest2b.class" width="300" height="100"><param name="message" value="BIIT Computer Education" /></applet>*/public class  AppletTest2b  extends  Applet {St