C Programs


Basic programs


Print Hello in c


Addition  of Two numbers


C program to check odd or even


C Program to Print an Integer Entered by the User


Program to Multiply Two Numbers


                                  Program to Print ASCII Value


              Program to Find the Size of int, float, double and char


                   Program to Demonstrate the Working of long


              Program to Swap Numbers Using Temporary Variable


                         Program to Check Vowel or consonant


Program to Find Roots of a Quadratic Equation


Program of find addition, subtraction, multiply, divide


program of factorial


Program of find Out HCM and LCM


c program to check given number is palindrome or not


c program to print number 1 to 10 using while loop


c program to print number 10 to 1 using do while loop


c program to check number is perfect or not


c program to print the square of 1 to n number using loop


c program to print table of n number


c program to find sum of even and odd numbers  KKKKK

CONVERTIONS

C Program to Convert the given Binary Number into Decimal


C Program to Convert Binary to Octal


C Program to Convert Binary to Hexadecimal


opoplppppppppp

Pattern programs


C Program To display the triangle using * 


C Program To Display inverted half pyramid using *


C Program To display the pyramid of *


Write a C program to display reverse pyramid.


Control Structure


If Statement

C program to print the number entered by user only if the number entered is negative.


Program to find the largest number using if statement

 

if…else statement

Write a C program to check whether a number entered by user is even or odd


Program to find the largest number using if…else statement


 Check if a Number is Positive or Negative Using if…else

Nested if statement

Program to find the largest number using nested if…else statement


Check if a Number is Positive or Negative Using Nested if…else


Write a program for nested if statement in C

for loops


Sum of Natural Numbers Using for Loop

lllllllllllll

PROGRAMS ON ARRAYS


C Program to Calculate Sum & Average of an Array


C Program to Calculate the Sum of the Array Elements using Pointer


C Program to Calculate Sum of all Elements of an Array using Pointers as Arguments


C Program to Compute the Sum of two One-Dimensional Arrays using Malloc


C Program to Find the Sum of Contiguous Subarray within a 1 – D Array of Numbers which has the Largest Sum