Quantcast
Channel: Codeforwin
Browsing all 132 articles
Browse latest View live
↧

Image may be NSFW.
Clik here to view.

C program to swap two numbers using bitwise operator

Write a C program to input any two numbers from user and swap values of both numbers using bitwise operator. How to swap two number using bitwise operator in C programming. Example:Input first number:...

View Article


Bitwise operator programming exercises and solutions in C

Bitwise operators are used extensively in programming whenever we need to operate on bit level of the value. Bitwise operator works on each bit of the data. There are operators are used for multiple...

View Article


C program to put even and odd elements of array in two separate array

Write a C program to input elements in an array and put all even and odd elements in two separate array. How to separate even and odd elements of a given array in two separate array containing only...

View Article

C program to sort even and odd elements of array separately

Write a C program to input elements in an array from user and sort all even and odd elements of the given array separately without using any other array. If minimum element of the array is even then...

View Article

C program to swap first and last digit of a number

Write a C program to input any number from user and swap the first and last digit of the given number. How to swap first and last digits of any given number in C programming. C program for swapping...

View Article


C program to find cube of a number using function

Write a C program to input any number from user and find cube of the given number using function. How to find cube of a given number using function in C programming. Example:Input any number: 5Output:...

View Article

C program to find power of any number using recursion

Write a C program to input any number from user and find the power of given number using recursion. How to find power of any given number using recursive function in C programming. Finding x to the...

View Article

C program to find diameter, circumference and area of circle using function

Write a C program to input radius of circle from user and find diameter, circumference and area of the given circle using function. How to find diameter, circumference and area of a circle using...

View Article


C program to find maximum and minimum using functions

Write a C program to input two or more numbers from user and find maximum and minimum of the given numbers using functions. How to find maximum and minimum among two or more numbers using functions in...

View Article


C program to check even or odd using functions

Write a C program to input any number from user and check whether the given number is even or odd using functions. How to find whether a number is even or odd using functions in C programming. Write a...

View Article

C program to find factorial of a number using recursion

Write a recursive function in C programming to find factorial of any given number. How to find factorial of any number using recursion in C programming. Example:Input any number: 5Output: 120Required...

View Article

Image may be NSFW.
Clik here to view.

C program to generate nth fibonacci term using recursion

Write a recursive function to generate nth fibonacci term in C programming. How to generate nth fibonacci term in C programming using recursion. Example:Input any number: 10 Output 10th fibonacci term:...

View Article

C program to check prime, armstrong, perfect number using functions

Write a C program to check whether a number is prime, armstrong, perfect number or not using the concept of functions. How to check whether a number is prime number or armstrong number or perfect...

View Article


C program to find prime numbers between two intervals using functions

Write a function in C programming to find all prime numbers between two intervals. How to find all prime numbers between two intervals using the concept of functions. Display all prime numbers between...

View Article

C program to print all natural numbers from 1 to n using recursion

Write a recursive function in C programming to print all natural numbers between 1 to n. How to print all natural numbers from 1 to n using recursion in C program. Write a function in C program to...

View Article


C program to find sum of natural numbers between 1 to n using recursion

Write a recursive function in C programming to find sum of all natural numbers between 1 to n. How to find sum of all natural numbers in C programming using recursion. Finding all natural numbers using...

View Article

C program to print even or odd numbers between 1 to n using recursion

Write a recursive function in C programming to print all even or odd numbers between 1 to n. How to print all even numbers in a given range using recursion in C programming. How to print all odd...

View Article


C program to find sum of even or odd number from 1 to n using recursion

Write a recursive function in C programming to find the sum of all even or odd numbers in a given range. How to find the sum of all even numbers between 1 to n using recursion in C programming. How to...

View Article

C program to find reverse of a number using recursion

Write a recursive function in C programming to find reverse of any number. How to find reverse of any number in C programming using recursion. Finding reverse of any number using recursion in C...

View Article

C program to check palindrome number using recursion

Write a recursive function in C programming to check whether a given number is palindrome or not. How to check whether a number is palindrome or not using recursion in C programming. Function to check...

View Article
Browsing all 132 articles
Browse latest View live