..

FreePrograms


C programming Tutorial 

Free C Programs, C Programs Download


Embedded C lang & 8051(Embedded Products)


  CONTACT US   ABOUT US   PRIVACY  DISCLAIMER

FREE C PROGRAMS 

What is C C vs C++ vs Java Program Structure Data Types in C Basic Rules of C & C++
Functions in C If, Else Conditions Loops in C Switch Case Arrays
Pointers Structures in C Strings in C Command Line Arguments Type Casting
Linked Lists Recursion Binary Trees Inheritance Multiple Inheritance
Templates File I/O Object Oriented Programming  Data Structures in C C interview Questions

/* Program to check whether a no. is negative or positive.*/



#include<stdio.h>
#include<conio.h>
int main()
{
int a;
clrscr();
printf("enter value of a");
scanf("%d",&a);
if(a>0)
{
printf("no. is positive");
}
else
{
printf("no. is negative");
}
getch();
return 0;
}

 

COPYRIGHT 2009 ALL RIGHTS RESERVED FREECPROGRAMS.COM