C Programs 53 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.

          C Program to Convert Number into Word

          This program is used to convert a given number into its / their equivalent words. Program: #include<stdio.h> void main() { int num, i=0, x, d; char word_no [2000]; printf ("Enter an integer value: \n"); scanf ("%d", &num); while (num) […]

            Scroll Back to Top