Get Email Subscription

Enter your email address:

Delivered by FeedBurner

Sunday, January 3, 2010

Write a program in 'C' to enter any two numbers and find and print their minimum.(Using if.....else statement)



#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
float a, b, min;
printf("Enter any two numbers\n");
scanf("%f %f", &a, &b);
if(a < min =" a;" min =" b;">

For eg :-

Output :-
Enter any two numbers
20.5 32.3
The minimum number is 20.500000

Related Posts by Categories



0 comments:

About This Blog

Lorem Ipsum

  © Blogger templates Newspaper III by Ourblogtemplates.com 2008

Back to TOP