## VB.Net Program to find the Number Palindrome or not

Module Module1 Sub Main() Dim num As Integer, remainder As Integer, sum As Integer = 0, temp As Integer Console.WriteLine(“*** www.ProgrammingPosts.blogspot.com ***”) Console.WriteLine(vbLf & ” >>>> To Find a Number is Palindrome or not <<<< “) Console.Write(vbLf & ” Enter a number: “) num = Convert.ToInt32(Console.ReadLine()) temp = num While… Continue Reading VB.Net Program to find the Number Palindrome or not

## VB.Net Program to Print Reverse of a Number

Module Module1 Sub Main() Dim num As Integer, remainder As Integer, sum As Integer = 0, rev As Integer Console.WriteLine(“*** www.ProgrammingPosts.blogspot.com ***”) Console.WriteLine(vbLf & ” >>> VB.NET Program To Find Reverse Of a Number <<<“) Console.Write(vbLf & ” Enter a number: “) num = Convert.ToInt32(Console.ReadLine()) While Convert.ToBoolean(num) remainder =… Continue Reading VB.Net Program to Print Reverse of a Number

## VB.Net Program to Print Sum Of Series 1+2+3+..+n

Module Module1 Sub Main() Dim sum As Integer = 0, i As Integer, n As Integer Console.WriteLine(“*** www.programmingposts.blogspot.com ***”) Console.WriteLine(vbLf & “>>> VB.Net Program to print Sum of Series 1+2+3+..+n <<<“) Console.Write(vbLf & ” Enter the nth number of series: “) n = Convert.ToInt32(Console.ReadLine()) ‘taking input, converting to Int For… Continue Reading VB.Net Program to Print Sum Of Series 1+2+3+..+n

## VB.Net Program to get Product of two Numbers

Module Module1 Sub Main() Dim x, y As Integer Dim result As Integer Console.WriteLine(“*** www.ProgrammingPosts.blogspot.com ***”) Console.WriteLine(“>>> VB.NET PROGRAM FOR PRODUCT OF TWO NUMBERS <<< “) ‘vblf gets the cursor to next line in console Console.Write(vbLf & ” Enter the first number : “) ‘ reading 1st number from… Continue Reading VB.Net Program to get Product of two Numbers

## VB.Net Program to ADD two INTEGERS without using THIRD VARIABLE

Module Module1 Sub Main() Dim x As Integer, y As Integer Console.WriteLine(“*** www.ProgrammingPosts.blogspot.com ***”) Console.WriteLine(“>>> VB.NET PROGRAM TO ADD TWO NUMBERS WITHOUT USING THIRD VARIABLE <<< “) ‘vblf gets the cursor to next linein console Console.Write(vbLf & ” Enter the first number to be added: “) ‘ taking x… Continue Reading VB.Net Program to ADD two INTEGERS without using THIRD VARIABLE

## IS .NET PLATFORM DEPENDENT OR PLATFORM INDEPENDENT ?

.NET  is a platform independent but not fully platform independent. why because, the code written in any of the .NET Languages are compiled into MSIL code ( microsoft intermediate language code) . The MSIL code is platform independent. Hence to Run a .NET application on any machine we need to install .NET Framework.… Continue Reading IS .NET PLATFORM DEPENDENT OR PLATFORM INDEPENDENT ?

## C PROGRAM TO ADD TWO NUMBERS WITHOUT USING THIRD VARIABLE

#include<stdio.h> int main() { int x,y; printf(” **** www.ProgrammingPosts.com *** “); printf(” >>> PROGRAM TO ADD TWO NUMBERS WITHOUT USING THIRD VARIABLE <<< “); printf(“n Enter the first number to be added: “); scanf(“%d”,&x); /* taking x value from keyboard*/ printf(“n Enter the second number to be added: “);… Continue Reading C PROGRAM TO ADD TWO NUMBERS WITHOUT USING THIRD VARIABLE

## VB.NET PROGRAM TO ADD TWO NUMBERS / INTEGERS USING FUNCTION

VB.NET PROGRAM TO ADD TWO NUMBERS / INTEGERS USING FUNCTION Module Module1 Sub Main() Dim x, y, result As Integer Console.WriteLine(“*** www.ProgrammingPosts.blogspot.com ***”) Console.WriteLine(“>>> VB.NET Console program to add two integers <<<“) Console.Write(” Enter the first number to be added: “) x = Convert.ToInt32(Console.ReadLine()) Console.Write(” Enter the second number to… Continue Reading VB.NET PROGRAM TO ADD TWO NUMBERS / INTEGERS USING FUNCTION

## C# PROGRAM TO ADD TWO NUMBERS / INTEGERS USING METHOD

Program : using System; namespace AddTwoNumsUsingFunc { class Program { static void Main(string[] args) { int x, y, result = 0; Console.WriteLine(“*** www.ProgrammingPosts.blogspot.com *** “); Console.WriteLine(“>>>C# PROGRAM TO ADD TWO NUMBERS USING METHOD <<< “); Console.Write(“\n Enter the first number to be added: “); x = Convert.ToInt32(Console.ReadLine()); // taking x… Continue Reading C# PROGRAM TO ADD TWO NUMBERS / INTEGERS USING METHOD

## C PROGRAM TO ADD TWO NUMBERS USING FUNCTION

C PROGRAM TO ADD TWO NUMBERS / INTEGERS USING FUNCTION #include<stdio.h> #include<conio.h> int sum(int,int); /*declaring prototype of function*/ void main() { int a,b,c; printf(“n Enter the two numbers : “); scanf(“%d %d”,&a,&b); /* taking two numbers as input*/ c = sum(a,b); /* calling function,                        *the value returned by the function… Continue Reading C PROGRAM TO ADD TWO NUMBERS USING FUNCTION

## VB.NET PROGRAM TO ADD TWO NUMBERS / INTEGERS

In this post, we will see a VB.Net Program to read two number inputs from user and display the sum. The program below accepts two numbers from user and perform basic arithmetic operation(addition) using + operator and display the sum on screen. For algorithm & flowchart to add two numbers, go… Continue Reading VB.NET PROGRAM TO ADD TWO NUMBERS / INTEGERS

## C# PROGRAM TO ADD TWO NUMBERS / INTEGERS

C# PROGRAM TO ADD TWO NUMBERS / INTEGERS   using System; namespace CsharpPrograms { class Program { static void Main(string[] args) { int x; int y; int result; Console.Write(“\n Enter the first number to be added: “); x=Convert.ToInt32(Console.ReadLine()); Console.Write(“\n Enter the second number to be added: “); y = Convert.ToInt32(Console.ReadLine());… Continue Reading C# PROGRAM TO ADD TWO NUMBERS / INTEGERS

## C PROGRAM TO PRINT NUMBERS 1 TO N WITHOUT USING LOOPS

C PROGRAM TO PRINT NUMBERS 1 TO N WITHOUT USING LOOPS #include<stdio.h> void print_numbers(int,int); //declaring function definition main() { int n; printf(“n *** C PROGRAMS BLOG ***”); printf(“n >>> Program to print numbers 1 to n without using Loops <<<“); printf(“nn Enter the value of n: “); scanf(“%d”,&n); //taking value… Continue Reading C PROGRAM TO PRINT NUMBERS 1 TO N WITHOUT USING LOOPS

## C PROGRAM TO PRINT THE ELEMENTS OF ARRAY IN REVERSE ORDER

C PROGRAM TO PRINT THE ELEMENTS OF ARRAY IN REVERSE ORDER #include<stdio.h> #define MAX 25 //maximum size of array is 25 main() { int i,n,arr[MAX]; printf(” *** C PROGRAMS BLOG ***”); printf(“n >>> Program to Print the element of array in Reverse Order<<<“); printf(“nn Enter the size of array: “);… Continue Reading C PROGRAM TO PRINT THE ELEMENTS OF ARRAY IN REVERSE ORDER

## C PROGRAM TO FIND LARGEST AND SMALLEST NUMBER IN AN ARRAY

C PROGRAM TO FIND LARGEST AND SMALLEST NUMBER IN AN ARRAY original post #include<stdio.h> #define MAX 25 //maximum size of array is 25 main() { int i,n,LargeNo,SmallNo,arr[MAX]; printf(” *** C PROGRAMS BLOG ***”); printf(“\n >>> Program to find Largest element in array <<< \n”); printf(“\n Enter the size of array:… Continue Reading C PROGRAM TO FIND LARGEST AND SMALLEST NUMBER IN AN ARRAY

## C PROGRAM TO FIND LARGEST / BIGGEST NUMBER IN ARRAY

C PROGRAM TO FIND LARGEST / BIGGEST NUMBER IN ARRAY #include<stdio.h> #define MAX 25 //maximum size of array is 25 main() { int i,n,LargeNo,arr[MAX]; printf(“*** C PROGRAMS BLOG ***”); printf(“\n>>> Program to find Largest element in array <<<\n”); printf(“\n Enter the size of array: “); scanf(“%d”,&n); //taking size of array… Continue Reading C PROGRAM TO FIND LARGEST / BIGGEST NUMBER IN ARRAY

## convert textbox text to uppercase in c#

In this post we will see how to convert textbox text to upper case when it is entered . For this we will consider an example, suppose a textbox is taken for full name, then we should allow only characters/letters in it. And we want full name to be entered… Continue Reading convert textbox text to uppercase in c#

## TEXTBOX VALIDATION FOR INDIAN PAN CARD NUMBER USING TEXTBOX VALIDATINGEVENT

In this post we will see the sample code for validating Textbox in C#.Net winforms for indian pan card number using Regular Expression in TextBox Validating Event . In the below code we are using a errorprovider to show if the entered pan number is in wrong / invalid format.… Continue Reading TEXTBOX VALIDATION FOR INDIAN PAN CARD NUMBER USING TEXTBOX VALIDATINGEVENT

## How To Remove Unused Usings in Visual Studio

There are two ways to remove unused using from our code . Remove Unused Usings option in Visual Studio removes unused using in our code . The first way is : 1) Main Menu – On the Edit menu, point to IntelliSense, point to Organize Usings, and then click Remove Unused Usings. 2) Context Menu –… Continue Reading How To Remove Unused Usings in Visual Studio