C# Program to Swap Two Numbers

This is a C# Program to swap 2 numbers. Problem Description This C# Program Swaps 2 Numbers. Problem Solution It obtains two numbers from the user and swaps the numbers using a temporary variable. Program/Source Code Here is source code of the C# program that swaps two numbers. The C# program is successfully compiled and … Read more

advertisement

C# Program to Print All the Multiples of 17 which are Less than 100

This is a C# Program to print all the multiples of 17 which are less than 100. Problem Description This C# Program Prints all the Multiples of 17 which are Less than 100. Problem Solution Here all the multiples of 17 are displayed. Program/Source Code Here is source code of the C# Program to Print … Read more

advertisement

C# Program to Add Two Dates

This is a C# Program to add two dates. Problem Description This C# Program Adds Two Dates. Problem Solution Here the new date is found by adding using function AddDays(). Program/Source Code Here is source code of the C# Program to Add Two Dates . The C# program is successfully compiled and executed with Microsoft … Read more

advertisement

C# Program to Display the Date in Various Formats

This is a C# Program to display the date in various formats. Problem Description This C# Program Displays the Date in Various Formats. Problem Solution Here the Date is Displayed in various Formats. Program/Source Code Here is source code of the C# Program to Display the Date in Various Formats . The C# program is … Read more

advertisement

C# Program to Check Whether a Number is Positive or Not

This is a C# Program to accept a number from the user and display it if it is Positive. Problem Description This C# Program Accepts a Number from the user and Display it if it is Positive. Problem Solution Here if a given number is less than zero then it is displayed as positive else … Read more

advertisement

C# Program to Print Multiplication Table

This is a C# Program to find and display the multiplication table. Problem Description This C# Program Finds and displays the Multiplication Table. Problem Solution Here the limit is obtained from the user and the multiplication table is diaplayed. Program/Source Code Here is source code of the C# Program to Find and display the Multiplication … Read more

advertisement

C# Program to Compare Two Dates

This is a C# Program to compare two dates. Problem Description This C# Program Compares Two Dates. Problem Solution Here two dates are compared and the date which occurs first is displayed. Program/Source Code Here is source code of the C# Program to Compare Two Dates. The C# program is successfully compiled and executed with … Read more

advertisement

C# Program to Check if a Given Year is a Leap Year

This is a C# Program to check whether the entered year is a leap year or not. Problem Description This C# Program Checks Whether the Entered Year is a Leap Year or Not. Problem Solution When A year is divided by 4. If the remainder becomes 0 then the year is called a leap year. … Read more

advertisement

C# Program to Check Whether a Given Number is Even or Odd

This is a C# Program to check whether the entered number is even or odd. Problem Description This C# Program checks if a given integer is Odd or Even. Problem Solution Here if a given number is divisible by 2 with the remainder 0 then the number is an Even number. If the number is … Read more

advertisement

Sum of Digits Program in C#

This is a C# Program to get a number and display the sum of the digits. Problem Description This C# Program Gets a Number and Display the Sum of the Digits. Problem Solution The digit sum of a given integer is the sum of all its digits. Program/Source Code Here is source code of the … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.