C# Square Area and Perimeter Calculator – C# Programming Example
Basic C# Console

C# Square Area and Perimeter Calculator

C# Console Application. A simple program to calculate the area and perimeter of a square, using the height.

Variables are defined in the first row. In the next lines, values are assigned to these variables.

In the last line we print the Area and Perimeter of rectangle to the screen.

Code:

Output:

square-area-perimeter

Basic C# Console Examples

C# Program to Print “hello world”
C# Program to Add Two Numbers
C# Program to Swap 2 Numbers
C# Program to Finds the Average of 3 Numbers
C# Program to Convert Inches to Centimeters
C# Program to Convert Centimeters to Inches
C# Program to Calculate Rectangle Area
C# Program to Calculate Square Area and Perimeter
C# Program to Calculate Area and Perimeter of Circle
C# Program to Calculate Area and Perimeter of Pentagon
C# Program to Count Number of Words in a String
C# Program to Convert Feet to Inches
C# Program to Convert Inches to Feet
C# Program to Convert Dollars to Cents
C# Program to Convert Celsius to Fahrenheit

C# Conditional Examples

C# Program to Find the Biggest of Two Numbers
C# Program to Find the Biggest of Three Numbers
C# Program to Get Month Name From Month Number
C# Program to Find Quadratic Equation Solver (ax2 + bx + c = 0)
C# Program to Calculate the Sum of N Numbers
C# Program to Compare Two Dates
C# Program to Find Number is Even or Odd
C# Program to Find Leap Year
C# Program Library Fine Calculation
C# Program to Count Decimal Number of Digits After and Before Point
C# Program to Find the LONGEST word in an Entered String
C# Program to Compare Two Strings in C#
C# Program to Simple Grading System
C# Program to Rotate Matrix to 90 Degree

C# Loop Examples

C# Program to Display Numbers Between 1 to 100 Using For Loop
C# Program to Display Numbers Between 1 to N Using For Loop
C# Program to Find the Factorial of a Number
C# Program to Calculate the Sum Of First n Natural Numbers
C# Program to Decimal to Binary in C#
C# Program to Reverse an int Value Without Using Array
C# Program to Find Sum and Average of N Numbers Using While Loop
C# Program to Print Alphabets
C# Program to Display the Product of Two Numbers Between
C# Program to Print Star Pattern
C# Program to Reverse Words in a String
C# Program to Read the Text Files using the StreamReader
C# Program to Read Text File to List

C# Conditional and Loop Examples

C# Program to Find the Sum of All Integers 1 through N That are Divisible by 3
C# Program to Display Binary Triangle
C# Program to Print all Prime Numbers in an Interval
C# Program to Find Fibonacci Series
C# Program to Find Numbers Above and Below the Average
C# Program to Check Armstrong Number
C# Program to Make a Simple Calculator
C# Program to Print Multiplication Table
C# Program to Solve Coin Change Problem
C# Program to Find Greatest Common Divisor (GCD) of Two Numbers Using While Loop
C# Program to Find GCD of Two Numbers Using For Loop
C# Program to Find Greatest Common Divisor (GCD) of Two Numbers
C# Program to Find Numbers 1 to N not divisible by 3 and 7
C# Program to Display Numbers Between 1 and 100 which divisible by 3 or 5
C# Program to Find Armstrong Numbers Between Two Intervals
C# Program to Calculate Armstrong Number Using While Loop
C# Program to Calculate Permutation and Combination
C# Program to Count the Total Letter in a Text
C# Program to Check for Palindrome Strings or Numbers
C# Program to Find Palindrome Number Series
C# Program to Find Prime Numbers and Total Prime Numbers in Given Range

C# Console Array Examples

C# Program to Find Min Value in Array
C# Program to Find Max Value in Array without Max() Method
C# Program to Find Top Two Maximum Numbers in an Array
C# Program to Find The Second Largest Number in Array
C# Program to Read Characters and Find Frequency from Text File
C# Program to Find The Longest Word in String Array
C# Program to Calculate Sum and Average of an Array in C#
C# Program to Remove Last Item from Array

C# Console Method Examples

C# Program to Calculate Determinant of a Matrix
C# Program to Find Fibonacci Series with Recursive Method
C# Program to Find If a Number is Prime or Not Using Recursion
C# Program to Calculate the Power Using Recursion
C# Program to Find Greatest Common Divisor (G.C.D) Using Recursion
C# Program to Reverse a Sentence Using Recursion
C# Program to Calculate Factorial of a Number Using Recursion
C# Program to Add Three Integers Using Function
C# Program to Calculate the Average of 3 Numbers Using Function
C# Program to Calculate the Sum of digits of a Number
C# Program to Draw a Rectangle in Console Application using Static Method
 

1 Comment

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: