Home C Language Basic C Programs

Basic C Programs

basic c programs, c language basics, some basic c programs, c programming basic programs, basics of c, simple c programs,c programming examples with output, c programming

Basic c programs for Computer Science Engineering , Information Technology ,Master of Computer Applications and Bachelor of Science students.

Here basic c programs for practicing in LAB for CSE, MCA, IT and BSC students.

Practicing Lab C Language basics  for CSE, MCA, IT, BSc students.

Write a sample C Program.

Write a C program to print a block F using hash (#), where the F has a height of six characters and width of five and four characters.

Write a C program to compute the perimeter and area of a rectangle with a height of 7 inches and width of 5 inches.

Write a C program to display multiple variables.

Write a C Program to read and write a variable.

Write a C Program to give demo on Arithmetic operations.

Write a C Program to Swap two numbers.

Write a C Program to Swap two numbers without third variable.

Write a C Program to demonstrate Pre and Post Increment.

Write a C Program to demonstrate Pre and Post Decrement.

Write a C Program to print ASCII Value of a Character.

Write a C Program to convert Celsius to Fahrenheit.

Write a C Program to convert Fahrenheit to Celsius.

Write a C program to calculate the distance between the two points.

Write C program to find the distance traveled at regular intervals of time given the values of ‘u’ and ‘a’.

Write a C Program to demonstrate Ternary operator.

Write a C Program to Find Whether the Given number is Even or Odd.

Write a C Program to Simulate 3rd Law at Motion.

Write a C program to find the roots of a quadratic equation.

Write a C program that accepts 4 integers p, q, r, s from the user where r and s are positive and p is even. If q is greater than r and s is greater than p and if the sum of r and s is greater than the sum of p and q print “Correct values”, otherwise print “Wrong values”.

Write a C Program to demonstrate “nested if” (or)
Write a C Program to find Biggest among three numbers.

Write a program in C which is a Menu-Driven Program to compute the area of the various geometrical shape.

Write a C Program to print first ‘n’ natural numbers.

Write a program in C to display the n terms of even natural numbers and their sum.

Write a C Program to print nth multiplication table.

Write a C Program to Add Digits & Multiplication of a number.

Write a C Program to calculate the Factorial of a given number.

Write a C program to print given pattern(This page contains different pattern programs).

Write a C program to print Floyd Triangle.

Write a C Program to print Pascal Triangle.

Write a C Program to generate the first n terms of the Fibonacci series.

Write a program in C to display the n terms of harmonic series and their sum. 1 + 1/2 + 1/3 + 1/4 + 1/5 … 1/n terms.

Write a C program to calculate the following Sum: Sum=1-x2/2! +x4/4!-x6/6!+x8/8!-x10/10!.

Write a C program to read in two numbers, x and n, and then compute the sum of this geometric progression: 1+x+x2+x3+………….+xn.

Write a C Program to Find Whether the Given Year is a Leap Year or not.

Write a C Program to Find Whether the Given Number is Prime Number or not.

Write a C Program to Find whether the given number palindrome or not.

Write a C Program to Find Whether the Given Number is Armstrong Number or not.

Write a program which checks a given integer is Fibonacci number or not.

Write a C program to generate first ‘n’ prime numbers, where n is a value Supplied by the user.

Write a program in C to print all unique elements in an array.

Write a program in C to separate odd and even integers in separate arrays.

Write a program in C to sort elements of array in ascending order.

Write a program in C for multiplication of two square Matrices.

Write a program in C to find transpose of a given matrix.

Write a program in C to search an element in a row wise and column wise sorted matrix.

Write a program in C to print individual characters of string in reverse order.

Basic C Programs c language basics basics of c c++ basics simple c programs c# basics c++ basic programs simple c++ program basic c interview questions  c language basics notes basic c programming questions c language basics pdf basic c programs for interviews c programming basics pdf basics of c language for beginners