Category: C program

python tutorials and learn python

Created with Sketch.

C Program to Add Two Integers

C Program to Add Two Integers In this program, the user is asked to enter two integers. Then, the sum of those two integers is stored in a variable and displayed on the screen. Program to Add Two Integers Output Enter two integers: 12 11 12 + 11 = 23 In this program, user is…
Read more

C Program to Print an Integer (Entered by the User)

C Program to Print an Integer (Entered by the User) In this program, integer entered by the user is stored in a variable. Then, that variable is displayed on the screen using printf() function. Program to Print an Integer Output Enter a integer: 25 You entered: 25 In this program, an integer variable number is declared.…
Read more

Program to Display “Hello, World!”

C “Hello, World!” Program A simple C program to display “Hello, World!” on the screen. Since it’s a very simple program, it is often used to illustrate the syntax of a programming language. Program to Display “Hello, World!” Output Hello, World! How “Hello, World!” program works? The #include <stdio.h> is a preprocessor command. This command…
Read more