All Questions

510 questions and answers

998 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;

Demo Teacher
added 2 years ago
1026 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");

Demo Teacher
added 2 years ago
1014 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;

Demo Teacher
added 2 years ago
1038 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)");

Demo Teacher
added 2 years ago
962 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");

Demo Teacher
added 2 years ago
948 views

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

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

Demo Teacher
added 2 years ago
1004 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");

Demo Teacher
added 2 years ago
1012 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");

Demo Teacher
added 2 years ago
961 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");

Demo Teacher
added 2 years ago
1072 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");

Demo Teacher
added 2 years ago