Thursday, 23 January 2014

/* WAP to find Factorial of a number using recursive function */

/* WAP to find Factorial of a number using recursive function */

/* Factorial of a number using recursive function */ #include<stdio.h> #include<conio.h> int fact(int); void main() {     int num;
/*WAP to find Factorial of a number using for loop */

/*WAP to find Factorial of a number using for loop */

/* Factorial of a number using for loop */ #include<stdio.h> #include<conio.h> void main() {     int num,i,fact=1;     printf("Enter
/* WAP to Matrix subtraction */

/* WAP to Matrix subtraction */

/* Matrix subtraction */ #include<stdio.h> #include<conio.h> void main() {     int mat1[3][3],mat2[3][3],sub[3][3],i,j;     printf("Enter the elements of  first matrix:\n");
* WAP to concate strings */

* WAP to concate strings */

/* WAP to concate strings */ #include<stdio.h> #include<conio.h> void main() {     char str1[100],str2[100],str[100];     int i=0,j=0;     printf("Enter
/* WAP to find the ASCII value of given character */

/* WAP to find the ASCII value of given character */

/* WAP to find the ASCII value of given character */ #include<stdio.h> #include<conio.h> void main() {     char ch;
/* WAP to arrange 5 given numbers in ascending order */

/* WAP to arrange 5 given numbers in ascending order */

/* WAP to arrange 5 given numbers in ascending order */ #include<stdio.h> #include<conio.h> void main() {     int num[5],i,j,temp;
/* WAP to Print the age of person in days  */
,

/* WAP to Print the age of person in days */

/* WAP to Print the age of person in days  */ #include<stdio.h> #include<conio.h> main() {     int age,days;    

Monday, 20 January 2014

Write a program to read a number and to test  whether it is an Armstrong number or not?
,

Write a program to read a number and to test whether it is an Armstrong number or not?

#include<stdio.h> #include<conio.h> void main() {     int num,temp,rem,sum=0;     printf("Enter a number:");     scanf("%d",&num);     temp=num;     while(temp!=0)    

Friday, 17 January 2014

Write a program to convert decimal to binary??

Write a program to convert decimal to binary??

#include<stdio.h> #include<conio.h> void main() {     int dec,temp,bin[100],i=1,j;     printf("Enter A Decimal Number:");     scanf("%d",&dec);     temp=dec;     while(temp!=0)
Write a program  to convert binary to deimal?

Write a program to convert binary to deimal?

#include<stdio.h> #include<conio.h> void main() {     int bin,dec=0,temp,rem,j=1;     printf("Enter Any Binary Number:");     scanf("%d",&bin);     temp=bin;    

Wednesday, 15 January 2014

Pages (26)1234567 >