Showing posts with label Loops. Show all posts
Showing posts with label Loops. Show all posts

C#: Program for student's report and book report.

In this C# tutorial we are  "developing a simple program to display student's report and book report using classes" . In this program we have taken three classes i.e student, book and prg as you see in line 3, 32 and 70 respectively. Also, class student is for student's report, class book is for books report and class prg is our main class to call both classes student and book.

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 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 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 print reverse of any number entered by the user

C# : Program to print reverse of any number entered by the user

In this C# tutorial we are "printing reverse of any number entered by the user" . Here we are taking three variables "num" for number ,"rem" for remainder and "rev" for reverse 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!!