Module Module1 Sub Main() Dim a As Integer = 1, b As Integer = 2, i As Integer Console.WriteLine(“www.ProgrammingPosts.blogspot.com”) Console.WriteLine(vbLf & ” >>VB.Net PROGRAM TO PRINT SMILEY SYMBOL <<” & vbLf) Console.WriteLine(vbLf & “ASCII SYMBOL OF 1” & vbLf) For i = 0 To 99 ‘for loop prints ascii symbol… Continue Reading VB.NET Program to Print Smiley Symbol

  Module Module1 Sub Main() Dim a As Integer = 3, i As Integer Console.WriteLine(“www.ProgrammingPosts.blogspot.com”) Console.WriteLine(vbLf & ” >>VB.Net PROGRAM TO PRINT LOVE SYMBOL <<” & vbLf) For i = 0 To 249 ‘for loop prints love symbol 250 times Console.Write(ChrW(a)) Next ‘Console.Write((char)3) ‘this also prints the same Console.ReadKey() End… Continue Reading VB.NET Program to Print Love Symbol

Module Module1 Sub Main() Dim num As Integer, i As Integer, fact As Integer = 1 Console.WriteLine(“www.ProgrammingPosts.blogspot.com”) Console.WriteLine(vbLf & ” >>VB.Net PROGRAM TO FIND FACTORIAL OF GIVEN NUMBER <<” & vbLf) Console.Write(vbLf & ” Enter the Number whose Factorial you want: “) num = Convert.ToInt32(Console.ReadLine()) For i = num To… Continue Reading VB.Net Program to Find Factorial of given Number

Lets suppose Database Name is MYDB and TABLE1, TABLE2, TABLE3 are tables in MYDB databaseSql query to retrieve all the column names in a table : select COLUMN_NAME from MYDB.INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = ‘TABLE1’Sql query to get common Columns in two tables in Sql Server : select COLUMN_NAME from MYDB.INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = ‘TABLE1’ intersect select COLUMN_NAME from MYDB.INFORMATION_SCHEMA.COLUMNS where TABLE_NAME… Continue Reading Sql query to get common Columns in multiple tables in Sql Server

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

  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

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

  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

  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

.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 ?

  #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 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

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 / 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

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   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 #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 #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 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