How to convert c code into assembly in keil 8051 compiler ? You can convert C code into assembly by following these steps. ... Read more »
C program to shutdown or turn off computer
C Program to shutdown your computer: This program turn off i.e shutdown your computer system. Firstly it will asks you to shutdown ... Read more »
programe to reverse an array in C
#include <stdio.h> int main() { int n, c, d, a[100], b[100]; printf("Enter the number of elements in array\n")... Read more »
programe for binary search in C
#include <stdio.h> int main() { int c, first, last, middle, n, search, array[100]; printf("Enter number of elements... Read more »
programe to print pattren of number and stars
#include <stdio.h> int main() { int row, c, n, temp; printf("Enter the number of rows in pyramid of stars you wish ... Read more »
programe to print floyd's triangle in C
#include <stdio.h> int main() { int n, i, c, a = 1; printf("Enter the number of rows of Floyd's triangle to prin... Read more »
programe to print diamond patern of stars in C
#include <stdio.h> int main() { int n, c, k, space = 1; printf("Enter number of rows\n"); scanf("%d"... Read more »
palindrome number in C
#include <stdio.h> int main() { int n, reverse = 0, temp; printf("Enter a number to check if it is a palindrome or ... Read more »
programe to find odd or even
#include<stdio.h> main() { int n; printf("Enter an integer\n"); scanf("%d",&n); if ( n%... Read more »
NCR and NPR in C
#include<stdio.h> long factorial(int); long find_ncr(int, int); long find_npr(int, int); main() { int n, r; long ncr,... Read more »
lenear seach in C
#include <stdio.h> int main() { int array[100], search, c, number; printf("Enter the number of elements in array\n&... Read more »
programe to find leap year in C
#include <stdio.h> int main() { int year; printf("Enter a year to check if it is a leap year\n"); scanf("... Read more »
insert an element in array
#include <stdio.h> int main() { int array[100], position, c, n, value; printf("Enter number of elements in array\n&... Read more »
programe to find HCF and LCM
#include <stdio.h> int main() { int a, b, x, y, t, gcd, lcm; printf("Enter two integers\n"); scanf("%d%d&... Read more »
generate and print armstrong number
#include <stdio.h> int main() { int r; long number = 0, c, sum = 0, temp; printf("Enter an integer upto which y... Read more »
programe to find minimum number in array
#include <stdio.h> int main() { int array[100], minimum, size, c, location = 1; printf("Enter the number of eleme... Read more »
programe to find maximum element in array
#include <stdio.h> int main() { int array[100], maximum, size, c, location = 1; printf("Enter the number of elements ... Read more »
Fibonacci Series in c
/* Fibonacci Series c language */ #include<stdio.h> int main() { int n, first = 0, second = 1, next, c; printf("En... Read more »
programe to find factorial in C
#include <stdio.h> int main() { int c, n, fact = 1; printf("Enter a number to calculate it's factorial\n"); ... Read more »
programe to Delete an element from array
#include <stdio.h> int main() { int array[100], position, c, n; printf("Enter number of elements in array\n");... Read more »