Finding the Prime Numbers in C
A prime number is a number greater than 1 that cannot be formed by multiplying two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number.
Programming powers modern technology — from desktop software and websites to mobile apps, games and enterprise systems. Strong programming skills remain essential for developers, students and technology professionals building modern digital solutions.
MYCPLUS has been publishing programming tutorials, source code examples and practical development guides since 2004. This programming hub brings together tutorials for C, C++, C#, Java, JavaScript, PHP and Python, along with game development and real-world coding examples designed for hands-on learning.
You will find beginner-friendly programming tutorials, practical source code examples and advanced development guides covering object-oriented programming, debugging, modern programming techniques and professional software development practices. Whether you are learning your first language, improving coding skills or exploring modern development technologies, this section provides structured resources for real-world programming and software engineering.
Why MYCPLUS: One of the web’s longest-running programming resources — trusted since 2004 with hundreds of tutorials, practical coding guides, source code examples and developer learning resources designed for real-world programming skills.
A prime number is a number greater than 1 that cannot be formed by multiplying two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number.
This C program reads a sequence of positive integers as input by the user and print their sum. The program keeps on taking the input from user until user enters number ( 0 ) and program calculates the sum of all input numbers. Finally this C program prints the sum of all the numbers on screen and terminates.
This is a C program of showing how to use a pointer to a function. The pointer to a function
This C source code demonstrates the implementation of fundamental mathematical operations using functions in the C programming language. It includes functions for calculating the square of a number, reading user input, and determining the area of a rectangle. The main program showcases the usage of these functions with specific values, providing a practical example for beginners to understand basic C programming concepts.
This is a simple C program to show pointers and how you can use pointers to print address of variables and their contents. This program prints the address of a variable, value of a variable, values of pointers.
The C program is a file listing utility that displays information about files in a specified directory. It uses command line arguments to display the listing in a tree style. The program iterates through the files in the specified directory and shows all the files and folders in specific directory with the file size, last modified date and other file attributes.
This is a simple C program that copies the contents of one file onto another file. It is similar to Unix’s cp command. This C program is called with two parameters i.e. the names of two files. The contents of the file referenced in second parameter are copied onto the file which is referenced by first parameter.
This C program is a simple banking system designed for novice programmers. The program uses graphics.h for graphical user interface elements, such as windows and buttons, and provides basic banking functionalities like creating a new account, listing all accounts, and handling account transactions. The program starts with an introduction, displaying the name of the bank using basic graphics functions.
This is a Game program written in C++. The objective of the game is to get to your proper plane on
This is a Borland C/C++ compiler Interface using the graphics.h library. This program uses many functions of graphics.h library provided by C Language. These functions include line(), setcolor(), outtextxy() etc.
This is a C Language Program to show the drawing and filling of some basic shapes like rectangle, circle etc. with colors and different shades by using Turbo C graphics.h and modern SDL libraries.
This is a C implementation of basic and few advance scientific features of calculator. It shows a nice graphical UI of the calculator with 3D buttons and demonstrates click button animation functionality. The functionalities of the calculator includes: Basic Mathematics (Add, Subtract, Multiply and Divide), Advance Mathematics (Square root, Square, Cube), Logarithmic Functions (Log, Natural Log (ln), e, Exponential), Number Conversions (Binary, Decimal, Hexadecimal and Octal), Trigonometric Functions (Sine, Cosine, Tangent, Cotangent, Secant and Cosecant), Angle Measurement (Degree, Radia and Gradian), Other Functions (Memory, Pi and Inv).