Showing posts with label Tutorials. Show all posts
Showing posts with label Tutorials. Show all posts
C#: A Simple Calculator

C#: A Simple Calculator

In this C# tutorial we are  "developing a simple calculator" . Here we are taking five variables "n1" for number one ,"n2" for number two, "ch" for choice, "res" of float type for result and "ch1" of char type for choice "Yes" respectively. For this we are using do-while loop here. Now, lets get started!!
C#: Program to calculate area and perimeter of a rectangle

C#: Program to calculate area and perimeter of a rectangle

In this C# tutorial we "calculate area and perimeter of a rectangle" . Here we are taking four variables "l" for length ,"b" for breadth, "ar" for area and "p" for perimeter of rectangle respectively. Now, lets get started!!
C#: Program to calculate area and perimeter of a circle

C#: Program to calculate area and perimeter of a circle

In this C# tutorial we "calculate area and perimeter of a circle" . Here we are taking four variables "r" for radius ,we assign our constant variable "pi" to 3.14, "ar" for area and "p" for perimeter of circle respectively. Now, lets get started!!
Java: Program to Input Country Name And Print Capital

Java: Program to Input Country Name And Print Capital

In this java tutorial we'll be "creating a java program which accepts a country name and prints its capital" .I'll be using arrays in this tutorials if you are unfamiliar with array head over to this tutorial. Now lets get started!!
C#: Program to check whether entered number is Armstrong Number or not

C#: Program to check whether entered number is Armstrong Number or not

In this C# tutorial we "check whether the entered number is Armstrong Number or not" . Here we are taking three variables "n" for number ,"rem" for remainder and "sum" for sum of digits respectively. Now, lets get started!!
C# : Program to calculate square root of any number

C# : Program to calculate square root of any number

In this C# tutorial we "calculate square root of any number entered by the user" . For this here we are taking two variables "sq" for square root and "n" for number entered by the user respectively. Also here we are using "Math.Sqrt" method which is used to find square root of a number at runtime.  Now, lets get started!!
C# : Program to find Compound Interest

C# : Program to find Compound Interest

In this C# tutorial we "Find Compound Interest using Principle, Rate and Time" . For this here we are taking four variables "p" for principle ,"r" for rate, "t" for time and "ci" for our compound interest respectively. Also here we are using "Math.Pow" method which takes the powers of numbers such as by squaring values.  Now, lets get started!!
C#: Program to Convert given no. of days into years, weeks and days

C#: Program to Convert given no. of days into years, weeks and days

In this C# tutorial we are "converting given no of days entered by the user into years, weeks and days" . Here we are taking three variables "y" for years ,"d" for days and "w" for weeks respectively. Now, lets get started!!
C#: Program to convert any decimal number to binary

C#: Program to convert any decimal number to binary

In this C# tutorial we are "converting any decimal number entered by the user to binary" . Here we are taking four variables "num" for number ,"i" for counter ,"rem" for remainder and "z" for output respectively. Now, lets get started!!
C# : Program to check whether number is prime or not

C# : Program to check whether number is prime or not

In this C# tutorial we were checking whether number is prime or not . Here we are taking two variables "num" for number and and "a" for counter variable. Now, lets get started!!

Note: Prime number is the number which divides by itself for e.g 2, 7, 11, 17....
C# : Program to print a table

C# : Program to print a table

In this C# tutorial we were showing printing of table of any number entered by the user. Here we are using "for" loop for our problem, you can also use while loop for the same. Aso, here we are taking three variables "num" for number, "i" for counter variable and "res" for result. Now, lets get started!!
C# : Program to show swapping of two numbers without using third variable

C# : Program to show swapping of two numbers without using third variable

In this simple C# tutorial we were showing swapping between two numbers without using any third varible. Here we take "float" datatype, you can also take "int" or "double" datatype too depending on the number entered by the user. Here we are taking two variables "a" for number one and "b" for number two. To show swapping without using any third variable we are using simple mathematics,don't worry its too easy. Now, lets get started!!
C# : Program to show swapping of two numbers

C# : Program to show swapping of two numbers

In this simple C# tutorial we were showing swapping between two numbers. Here we take "float" datatype, you can also take "int" or "double" datatype too depending on the number entered by the user. Here we are taking three variables "a" for number one and "b" for number two and "temp" i.e third variable to store our numbers during swapping. Now, lets get started!!
C# : Program to check whether number is even or odd

C# : Program to check whether number is even or odd

In this simple C# tutorial we check whether number entered by the user is even or odd. Here we take "float" datatype, you can also take "int" or "double" datatype too depending on the number entered by the user and variable "num" for the number entered by the user. To check whether the no is even or odd we were taking "if-else" condition statement.