C Programming and Concept
Pages
Home
8051 MICROCONTROLLERS PROGRAMMING
Thursday, 9 February 2012
Program to find largest of two numbers using Function/Recursion.
#include<conio.h>
#include<conio.h>
void main()
{
float large(float,float);
/*Function
declaration*/
float x,y,l;
clrscr();
printf("enter two numbers\n");
scanf("%f%f",&x,&y);
printf("x=%f and y=%f\n",x,y);
l=large(x,y);
/*Function reference*/
Read more »
Wednesday, 8 February 2012
Program to Reverse an Integer and Check for Palindrome.
#include<stdio.h>
#include<conio.h>
void main()
{
int num,rev=0,found=0,temp,digit;
clrscr();
printf("enter a integer\n");
scanf("%d",&num);
temp=num;
Read more »
Newer Posts
Older Posts
Home
Subscribe to:
Comments (Atom)