C Programs

55 Lessons

C Program to Print String

This C program is used to print a string on the screen input by the user. scanf function is used to obtain input and printf function is used to print the string on the screen

    C Program to Find the Greatest Among Ten Numbers

    This C Program is used to find the greatest among ten numbers. Program: #include <stdio.h> int main() { int a[10]; int i; int greatest; printf("Enter ten values:"); //Store 10 numbers in an array for (i = 0; i < 10; […]

      C Leap Year Program

      C program code for Leap Year, this C program is used to check whether the given year of input is a leap year or not.

        C Program to Print Without Semicolon

        This C program is used to print on the screen without using a semicolon. Semicolon must be used after printf function, but we can avoid this, by using printf function with if, while or switch statements.

          Scroll Back to Top