Ads block

Banner 728x90px

9.write a C Program to generate all the prime numbers between 1 to n where n is value supplied by the user


Program to generate all the prime numbers between 1 to n  where n is value supplied by the user Source Code: #include<stdio.h> int main() { int i,j,count…
Read more »

8. write a C program to generate the Fibonacci sequence of numbers or Fibonacci Series.


Program to generate the Fibonacci sequence of numbers or Fibonacci Series. Source Code: #include<stdio.h> int main() { int n1=0,n2=1,n3,i,number; printf(…
Read more »

7. write a C program to find the sum of individual digits of a positive integer and test given number is palindrome or not.


Program to find the sum of individual digits of a positive integer and test given number is palindrome or not. Source Code: #include <stdio.h> int main()…
Read more »

6. write a C program that finds if a given number is prime number or not


Program that finds if a given number is prime number or not Source Code: #include<stdio.h> int main() { int i,n,count=0; printf("enter the value of …
Read more »

5. write a C program which takes two integers operands and one operand from the user,perform the opearation and prints the result.


C program which takes two integers operands and one operand from the user,perform the opearation and prints the result(Using switch). Source Code: #include<…
Read more »

4. wite a C Program to find the roots of Quadratic Equation


Program to find the roots of Quadratic Equation Source Code: #include<stdio.h> int main() { int a,b,c,discriminant; float root1,root2,real,imag; printf(&…
Read more »

3. write a program to find Max. and Min. from three numbers using if else.


Program to find Max. and Min. from three numbers using if else.  Source Code: #include<stdio.h> void main() { int a,b,c; printf("enter three values:…
Read more »

2. write a simple program to convert the temperature from Farenheit to Celsius


Program to convert the temperature from Fahrenheit to Celsius Source Code: #include<stdio.h> int main() { float f,c; printf("Enter the value of tem…
Read more »

1. write a simple program that prints the results of all operators available in c


1a) Arithmetic Operators Source Code: #include<stdio.h> void main() { int a,b,sum,sub,mul,div,rem; printf("Enter a,b Values\n"); scanf("%…
Read more »

Lab Programs


C Lab Programs : [posts--tag:C Programs--50]
Read more »