programs

Swap Two Numbers

This program asks user to enter two numbers and this program will swap the value of these two numbers. Source Code to Swap Two Numbers #include <stdio.h> int main(){...

Find Size of int, float, double and char of Your System

The size of a character is always 1 byte but, size of int, float and double variables differs from system to system. This program will compute the size of...

compute the quotient and remainder and display

In this program, user is asked to enter two integers(dividend and divisor) and this program will compute the quotient and remainder and display it. Source Code /* C Program...

Find ASCII value of a character

Every character in C programming is given an integer value to represent it. That integer value is known as ASCII value of that character. For example: ASCII value of...

Multiply two Floating Point Numbers

In this program, user is asked to enter two floating point numbers and this program will mulitply these two numbers and display it. Source Code /*C program to multiply...

Add Two Integers

In this program, user is asked to enter two integers and this program will add these two integers and display it. Source Code /*C programming source code to add...

Print a Integer Entered by a User

Source Code #include <stdio.h> int main() { int num; printf("Enter a integer: "); scanf("%d",&num); /* Storing a integer entered by user in variable num */ printf("You entered: %d",num); return...

Print a Sentence

Source Code /* C Program to print a sentence. */ #include <stdio.h> int main() { printf("C Programming"); /* printf() prints the content inside quotation */ return 0; } Output...