Category: C#

C program to add two numbers

C program to add two numbers: This c language program perform the basic arithmetic operation of addition on two numbers and then prints the sum on the screen. For example if the user entered two numbers as 5, 6 then 11 (5 + 6) will be printed on the screen.   C programming code   […]

C program to check odd or even

C program to check odd or even: We will determine whether a number is odd or even by using different methods all are provided with a code in c language. As you have study in mathematics that in decimal number system even numbers are divisible by 2 while odd are not so we may use […]

Add digits of number in c

C program to add digits of a number: Here we are using modulus operator(%) to extract individual digits of number and adding them. C programming code   If you wish you can modify input variable (n) and do not use an additional variable (t) but it is not recommended. Output of program:   For example […]

Factorial program in c

Factorial program in c: c code to find and print factorial of a number, three methods are given, first one uses for loop, second uses a function to find factorial and third using recursion. Factorial is represented using ‘!’, so five factorial will be written as (5!), n factorial as (n!). Also n! = n*(n-1)*(n-2)*(n-3)…3.2.1 […]

C program to check leap year

C program to check leap year: c code to check leap year, year will be entered by the user. C programming code Download Leap year program. Output of program: Please read the leap year article at Wikipedia, it will help you to understand the program. This code is based on Gregorian Calendar.

C program to check whether input alphabet is a vowel or not

This code checks whether an input alphabet is a vowel or not. Both lower-case and upper-case are checked. C programming code Output of program: Check vowel using switch statement Function to check vowel This function can also be used to check if a character is a consonant or not, if it’s not a vowel then […]

[Solution 6 Answers] The version of the .NET Framework launch condition ‘.NET Framework 4’ does not match the selected .NET Framework bootstrapper package

PROBLEM The error “the target version of the .NET Framework in the project does not match the .NET Framework launch condition version” occurs when a C# project referring C++ through COM is built. SOLUTION 1: Check the project properties for the setup and deployment project. Right click on the Setup project, select properties, go to […]