C# program to print sum of series 1+2+3+….+n original post using System; namespace SumOfSeries { class Program { static void Main(string[] args) { int sum = 0, i, n; Console.WriteLine(“\n>>> C# Program to print Sum of Series 1+2+3+..+n <<<\n”); Console.Write(“\n Enter the number of terms:”); n=Convert.ToInt32(Console.ReadLine()); for (i = 1;… Continue Reading C# Program To Print Sum Of Series 1+2+3+..+n

using System; namespace ProductOfTwoNumbers { class Program { static void Main(string[] args) { int x, y; int result; Console.Write(“\n Enter the first number : “); x = Convert.ToInt32(Console.ReadLine()); /* reading 1st number from user*/ Console.Write(“n Enter the second number: “); y = Convert.ToInt32(Console.ReadLine()); /* reading 2nd number from user*/ result… Continue Reading C# PROGARM TO GET PRODUCT OF TWO NUMBERS

C# PROGRAM TO ADD TWO INTEGERS USING METHOD : namespace CsharpPrograms {     class Program     {         static void Main(string[] args)         {               int x,y,result=0;             Console.WriteLine(“>>> PROGRAM TO… Continue Reading C# PROGRAM TO ADD TWO INTEGERS USING METHOD

C# Program To Add Two Numbers/Integers without using Third Variable : using System;   namespace CsharpPrograms {     class Program     {         static void Main(string[] args)         {               int x,y;        … Continue Reading C# PROGRAM TO ADD TWO INTEGERS WITHOUT USING THIRD VARIABLE

C# PROGRAM TO PRINT MATRIX IN A SNAIL SHELL WAY original post link: http://csharpsense.blogspot.in/2013/02/c-program-print-multi-dimensional-array.html /**C# PROGRAM TO PRINT MATRIX IN SNAIL SHELL FORMAT**/ //for printing matrix as in the below given format //   1  2  3 4 //  12 13 14 5 //  11 16 15 6 //  10 9… Continue Reading C# PROGRAM PRINT A MULTI-DIMENSIONAL ARRAY IN SNAIL SHELL WAY

.NET framework is the software frame work developed by Microsoft. And it came into existence in the year 2000. It provides a large library and Language InterOperability across many programming languages provided by .NET framework. -> It’s not a single language; it‘s a collection of multiple languages and multiple  technologies. That‘s… Continue Reading WHAT IS .NET FRAMEWORK ?

SIMILARITIES BETWEEN JAVA AND .NET : ->  Both are Object oriented programming languages. ->Both use their own intermediate language. Java calls it as byte code and .NET  calls it as MSIL code. ->  Both are platform independent. -> Both support ―Garbage collection‖, which automatically clears the unused memory. ->  Both offer better… Continue Reading Similarities between JAVA and .NET

 In Procedural languages like ‘ C ‘ , all the variables and member functions are defined in a main() method and main() method is called for execution. As main() method is a entry point in a programming language.  The procedural Languages don’t provide any security and reusability. Hence, the object… Continue Reading DIFFERENCE BETWEEN PROCEDURAL PROGRAMMING AND OBJECT ORIENTED PROGRAMMING

Definition of a Computer Programming Language. It acts as interface (mediator) between the programmer and the system. It offers programmer, some Rules and Regulations for writing the programs. It also offers some Library, which is required for writing the programs. Obviously, the collection of programs is called a “SOFTWARE“. Some of… Continue Reading What is Computer Programming Languaue

In this post we will see a simple example with listbox . Here we will see how to add values to listbox at runtime . And Multi Select Property of ListBox. And how to copy selected values of listbox to textbox. For this I am designing a form with a… Continue Reading Copy Selected Values of a MultiSelect ListBox to TextBox in C#

Note:  Google Authorship is stopped since Aug 2014. for more details click here Now a days all the bloggers are interested to see their profile picture in google search results. As it increases the traffic to their blogs, and make the readers or visitors to find the blog easily. It… Continue Reading How to display Google+ Profile picture in Google search results

# C PROGRAM FOR PRODUCT OF TWO MATRICES #include<stdio.h> #include<conio.h> void main() { //using 2D-ARRAYS int RowSize,ColSize; int Matrix1[5][5]; int Matrix2[5][5]; int ResultMatrix[5][5]; int i, j; //clrscr(); printf(“\n >>> PROGRAM To PERFORM MULTIPLICATION OF TWO MATRICES <<<\n”); printf(“\n Enter the Size of a Matrix(For Example:3 3) : “); scanf(“%d %d”,&RowSize,&ColSize);… Continue Reading C PROGRAM TO PERFORM MATRIX MULTIPLICATION

C PROGRAM TO PERFORM SUBTRACTION ON TWO MATRICES #include<stdio.h> #include<conio.h> void main() { //using 2D-ARRAYS int RowSize,ColSize; int Matrix1[5][5]; int Matrix2[5][5]; int ResultMatrix[5][5]; int i, j; printf(“\n >>> PROGRAM To PERFORM SUBTRACTION ON TWO MATRICES <<<\n”); printf(“\n Enter the Size of a Matrix(For Example:3 3) : “); scanf(“%d %d”,&RowSize,&ColSize); if… Continue Reading C PROGRAM TO PERFORM SUBTRACTION ON MATRICES

C Program to Perform Matrix Addition #include<stdio.h> #include<conio.h> void main() { //using 2D-ARRAYS int RowSize,ColSize; int Matrix1[5][5]; int Matrix2[5][5]; int ResultMatrix[5][5]; int i, j; printf(“\n >>> PROGRAM To PRINT ADDITION OF TWO MATRICES <<<\n”); printf(“\n Enter the Size of a Matrix(For Example:3 3) : “); scanf(“%d %d”,&RowSize,&ColSize); if (RowSize >… Continue Reading C PROGRAM TO PERFORM ADDITION OF TWO MATRICES

While i was working with a C# application I got the need of getting all the database names in a ComboBox, I googled and found some queries to get the list of all database names. If you are working on master database, the query will be any one of the… Continue Reading Retrieving List of All DataBases in Sql Server

In this post we will see the textbox validation using KeyPress Event in Windows C# . For this i am taking two textboxes on a form one is  txt_Name and another is  txt_Mobile .  And i am taking one error provider on form. The Form designed as shown in figure… Continue Reading Textbox Validation using KeyPress Event in C#

Difference between World Wide Web and Internet The Internet is a interconnected computer networks. It is spread across globe and it connects the millions of computers globally. Internet is a structure on which www or web is based on. World wide web or Web is an information sharing model at… Continue Reading Difference between Internet and World Wide Web