Search This Blog

Showing posts with label C Programming. Show all posts
Showing posts with label C Programming. Show all posts

July 11, 2014

C Program to find ASCII value of a character entered by user

#include <stdio.h>
#include <conio.h>
int main( )
{
char c;
printf("Enter a Character\n");
scanf("%c",&c);
printf("ASCII value of %c=%d",c,c);
        getch ();
return 0;
}

C Program to check Whether a Number is Prime or not

#include <stdio.h>
#include <conio.h>
int main( )
{
int n,c;
printf("Enter a Number\n");
scanf("%d",&n);
if(n==2)
printf("Prime Number\n");
else{
for(c=2;c<=n-1;c++)
{

July 10, 2014

Write a Program to find whether a number is Greater,Equal to or Less then 20

#include <stdio.h>
#include <conio.h>
int main( )
{
 int a;
printf("Enter a number");
        scanf("%d",&a);
if(a<20)
        printf("You have enter less then 20");

Write a Program to check whether a Number is exactly divisible by 3 but not by 5

#include <stdio.h>
#include <conio.h>
int main( )
{
int x;
printf("Enter a number");
scanf("%d",&x);

if(x%3==0 && x%5!=0)
{
printf("%d is exactly divisible by 3 but not by 5",x);

Write a Program to check whether a Number is exactly divisible by 3 or not

#include <stdio.h>
#include <conio.h>
int main( )
{
int x;
printf("Enter a number");
scanf("%d",&x);
if(x%3==0)
{

Write a Program to enter three Numbers and find the greatest one

#include <stdio.h>
#include <conio.h>
int main( )
{
int a,b,c;
printf("Enter the three numbers");
scanf("%d%d%d",&a,&b,&c);
if(a>b && a>c)
{
printf("%d is Gretest among %d,%d,%d",a,a,b,c);

July 9, 2014

Eclipse Programming Software

Eclipse is an extensible development platform with runtimes and application frameworks for building, deploying and managing software across the entire software lifecycle. Many people know Eclipse as a Java IDE, but it is much more than that- Eclipse actually consists of over 60 different open-source projects, organized into 6 different categories:

July 5, 2014

Dev C++ Programming Software

Dev-C++ is a full-featured Integrated Development Environment (IDE) for the C/C++ programming language. It uses Mingw port of GCC (GNU Compiler Collection) as it's compiler. Dev-C++ can also be used in combination with Cygwin or any other GCC based compiler.

Turbo C++ Programming Software

Turbo C++ was a C++ compiler and integrated development environment and computer language originally from Borland. Most recently it was distributed by Embarcadero Technologies, which acquired all of Borland's compiler tools with the purchase of its CodeGear division in 2008. The original Turbo C++ product line was put on hold after 1994 and was revived in 2006 as an introductory-level IDE, essentially a stripped-down version of their flagship C++Builder. Turbo C++ 2006 was released on September 5, 2006 and was available in 'Explorer' and 'Professional' editions. 

July 4, 2014

C Programming Examples

Example-1: C program to print Hello World


#include <stdio.h>
#include <conio.h>
int main( )
{
printf("Hello World\n");
getch ( );
return 0;

}

Top Best Free C Programming Software

1. Dev C++
Bloodshed Dev-C++ is a full-featured Integrated Development Environment (IDE) for the C/C++ programming language. It uses Mingw port of GCC (GNU Compiler Collection) as it's compiler. Dev-C++ can also be used in combination with Cygwin or any other GCC based compiler.

June 29, 2014

Introduction to C Programming

C is a general-purpose high level language that was originally developed by Dennis Ritchie for the Unix operating system. It was first implemented on the Digital Eqquipment Corporation PDP-11 computer in 1972.

June 28, 2014

How to save the C Programming source code

Lets look at how to save the C Programming source code in a file, and how to compile and run it. Following are the simple steps:

Earn Money From Home