C Programs 53 Lessons

C programming examples with explanations

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; […]

      Page 1 of 512345