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: 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 […]
C program to perform basic arithmetic operations which are addition, subtraction, multiplication and division of two numbers. Numbers are assumed to be integers and will be entered by the user. C programming code Download Arithmetic operations program. Output of program: In c language when we divide two integers we get integer […]
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: 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 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.
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 […]
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 […]