All Questions

537 questions and answers

2177 views

Write a C program to convert binary to decimal using function.

#include<stdio.h> #include<conio.h> #include<math.h> int bin_to_dec(int); main() { int n,result;

Super Admin
added 3 years ago
2099 views

Write a C program to convert any name in short name.

#include<stdio.h> #include<conio.h> int isupper(char); main() { char c; printf("\n Enter any name");

Super Admin
added 3 years ago
2114 views

Write a C procram to G.C.D. of two no. using recursion.

#include<stdio.h> #include<conio.h> int gcd(int,int); main() { int a,b,temp,result;

Super Admin
added 3 years ago
2136 views

Write a C program to print all prime no.(1-100).

#include<stdio.h> #include<conio.h> main() { int i,j,n; printf("\n The prime numbers are(1-100)");

Super Admin
added 3 years ago
2040 views

Write a C program to addition of two matrices.

#include<stdio.h> #include<conio.h> main() { int a[10][10],b[10][10],c[10][10],m,n,p,q,i,j; printf("\n Enter the dimension of the 1st matrix");

Super Admin
added 3 years ago
2000 views

Write a C program to convert Centigrade temp into Farenhite temp.

#include<stdio.h> #include<conio.h> main() { float a,b;

Super Admin
added 3 years ago
2057 views

Write a C program to transpose of a matrix.

#include<stdio.h> #include<conio.h> main() { int a[10][10],b[10][10],m,n,i,j; printf("\n enter the dimension of the matrix");

Super Admin
added 3 years ago
2068 views

Write a C program to find the multiplication table of any no.

#include<stdio.h> #include<conio.h> main() { int n,i=1; printf("\n Enter any number");

Super Admin
added 3 years ago
2060 views

Write a C program to find the factorial of any number.

#include<stdio.h> #include<conio.h> main() { int n; long int fact=1; printf("\n Enter any number");

Super Admin
added 3 years ago
2127 views

Write a C program to find the GCD of two numbers.

#include<stdio.h> #include<conio.h> main() { int a,b,r,t; printf("\n Enter two number");

Super Admin
added 3 years ago