In this post i am going to explain a simple login application in windows c# . In this App we will cover few concepts like login concept with database connection, working with multiple forms in windows c# , ¬†passing values from one form to another form , adding local database… Continue Reading Simple Login Application in Windows C#

C PROGRAM TO FIND WHETHER STRING IS PALINDROME : #include<stdio.h> #include<string.h> main() { char str1[25],str2[25]; printf(“\n *** C Programs Blog ***”); printf(“\n >>> C Program to find whether string is Palindrome <<<“); printf(“\n\n Enter the string: “); scanf(“%s”,str1); strcpy(str2,str1); //copying str1 in str2 strrev(str2); //reversing str2 if(strcmp(str1,str2) == 0) //checking… Continue Reading C PROGRAM TO FIND WHETHER STRING IS A PALINDROME

C PROGRAM TO CHECK WHETHER GIVEN YEAR IS LEAP YEAR OR NOT #include<stdio.h> void LeapYear(int); void main() { int year; printf(“\n *** C PROGRAMS BLOG *** \n”); printf(“\n >>>> C PROGRAM TO CHECK WHETHER GIVEN YEAR LEAP YEAR OR NOT <<<< \n”); printf(“\n Enter the year : “); scanf(“%d”,&year); LeapYear(year);… Continue Reading C PROGRAM TO CHECK WHETHER GIVEN YEAR IS LEAP YEAR OR NOT

C PROGRAM TO FIND ROOTS OF QUADRATIC EQUATION #include<stdio.h> #include<math.h> int main() { float a,b,c,x,y,disc,p,q,r; printf(“n *** C PROGRAMS BLOG ***”); printf(“n >>>> C PROGRAM TO FIND ROOTS OF QUADRATIC EQUATION <<<<“); printf(“n Enter the values of a,b,c : “); scanf(“%f %f %f”,&a,&b,&c); disc=(b*b)-(4*a*c); if(disc == 0) { x=(-b)/(2*a); y=x;… Continue Reading C PROGRAM TO FIND ROOTS OF QUADRATIC EQUATION

C# PROGRAM TO GET FILE NAMES IN THE GIVEN DIRECTORY original post using System; using System.IO; namespace GetFileNames { class Program { static void Main(string[] args) { try { string FolderPath ; string[] Files; Console.WriteLine(” Enter the Directory Path to get File Names in it : “); FolderPath=Console.ReadLine(); Files =… Continue Reading C# PROGRAM TO GET FILE NAMES IN A GIVEN DIRECTORY

C# PROGRAM TO GET ALL FILE PATHS IN A GIVEN DIRECTORY original post using System; using System.IO; namespace GetFileNames { class Program { static void Main(string[] args) { try { string FolderPath ; string[] Files; Console.WriteLine(” Enter the Directory Path to get File Names in it : “); FolderPath=Console.ReadLine(); Files… Continue Reading C# PROGRAM TO GET FILE PATHS IN A GIVEN DIRECTORY

C PROGRAM EXAMPLE FOR toupper() FUNCTION : #include <stdio.h> //#include<string.h> int main() { int i; char str[20]; printf(“\n >>> C PROGRAM TO IMPLEMENT toupper() FUNCTION <<< \n”); printf( “\n Enter the string in Lower or Mixed Case: “); //scanf(“%s”,&str); //scanf() wont allow spaces gets(str); //gets() allows apaces printf(“\n The entered… Continue Reading C PROGRAM EXAMPLE FOR toupper() FUNCTION

C PROGRAM EXAMPLE FOR tolower() FUNCTION #include <stdio.h> //#include<string.h> int main() { int i; char str[20]; printf(“\n >>> C PROGRAM TO IMPLEMENT tolower() FUNCTION <<< \n”); printf(“\n Enter the string in Caps or Mixed Case: “); //scanf(“%s”,&str); //wont allow spaces gets(str); //gets() allows apaces printf(“\n The entered string in Lower… Continue Reading C PROGRAM EXAMPLE FOR tolower() FUNCTION

C PROGRAM TO PERFORM ARITHMETIC OPERATIONS USING SWITCH LOOP : #include<stdio.h> void main() { float value1,value2; char operator; printf(“\n >>> PROGRAM TO PERFORM ARITHMETIC OPERATIONS USING SWITCH LOOP <<< \n”); printf(“\n Enter Your Expression : “); scanf(“%f %c %f”,&value1,&operator,&value2); switch(operator) { case ‘+’ : printf(“\n Addition Result is : %f… Continue Reading C PROGRAM TO PERFORM ARITHMETIC OPERATIONS USING SWITCH LOOP

A Web Application is an Application Software stored on Web Server or Server and users can access it over a network such as Internet or Intranet through a Web Browser as Interface. In other words it is a Browser Supported programs written using Web Technologies . It is also called… Continue Reading What is Web Application or Web App ?

A website is a site or location on WorldWideWeb which is a collection of related WebPages over the internet . Each website contains  a HomePage . When we enter any website address, then the first webpage opened is the HomePage of that website. A WebSite can be hosted on one or… Continue Reading What is WebSite or Website Definition

original post using System; namespace FactorialOfNumber { class Program { static void Main(string[] args) { int num, i, fact = 1; //clrscr(); Console.WriteLine(“\n >>C# PROGRAM TO FIND FACTORIAL OF GIVEN NUMBER <<\n”); Console.Write(“\n Enter the Number whose Factorial you want: “); num=Convert.ToInt32(Console.ReadLine()); for (i = num; i >= 2; i–)… Continue Reading C# Program to Find Factorial of Number

C# Program to find whether the Number is Palindrome or not original post using System; namespace NumberPalindrome { class Program { static void Main(string[] args) { int num, rem, sum = 0, temp; //clrscr(); Console.WriteLine(“\n >>>> To Find a Number is Palindrome or not <<<< “); Console.Write(“\n Enter a number:… Continue Reading C# Program to Reverse a Number & Check if it is a Palindrome

C# PROGRAM TO PRINT THE REVERSE OF A GIVEN NUMBER original post using System; namespace ReverseNumber { class Program { static void Main(string[] args) { int num, rem, sum = 0, rev; Console.WriteLine(“\n /** To Find Reverse Of a Number **/”); Console.Write(“\n Enter a number: “); num=Convert.ToInt32(Console.ReadLine()); while (Convert.ToBoolean(num)) {… Continue Reading C# Program to Print Reverse Of a Given Number

C# PROGRAM FOR IMPLEMENTING PRODUCT OF MATRICES USING ARRAYS : original post using System; namespace MatrixMultiplication { class Program { static void Main(string[] args) { //using 2D-ARRAYS int RowSize = 5, ColSize = 5; int[,] Matrix1 = new int[RowSize, ColSize]; int[,] Matrix2 = new int[RowSize, ColSize]; int[,] ResultMatrix = new… Continue Reading C# PROGRAM FOR PRODUCT OF MATRICES USING ARRAYS

Implementing Addition of Two Matrices Using 2D-Arrays: original post using System; namespace MatrixAdditionProgram { class Program { static void Main(string[] args) { //using 2D-ARRAYS int RowSize = 5, ColSize = 5; int[,] Matrix1 = new int[RowSize, ColSize]; int[,] Matrix2 = new int[RowSize, ColSize]; int[,] ResultMatrix = new int[RowSize, ColSize]; int… Continue Reading C# PROGRAM FOR ADDITION OF MATRICES USING ARRAYS

Implementing Subtraction of Matrices Using 2D-Arrays: original post using System; namespace MatrixSubtractionProgram { class Program { static void Main(string[] args) { //using 2D-ARRAYS int RowSize = 5, ColSize = 5; int[,] Matrix1 = new int[RowSize, ColSize]; int[,] Matrix2 = new int[RowSize, ColSize]; int[,] ResultMatrix = new int[RowSize, ColSize]; int i,… Continue Reading C# PROGRAM TO PERFORM SUBTRACTION ON MATRICES USING ARRAYS