Sunday, February 19, 2012

C Program to find largest of two numbers - c programs


C Program to find largest of two numbers - c programs


// Write a c program to find largest of two numbers - Biggest of two numbers in c language - Maximum of two numbers using c

//Write a c program to find largest of two numbers - Biggest of two numbers in c language - Maximum of two numbers using c


#include<stdio.h>
main()
{
int n1, n2,;

printf("enter two numbers",n);
scanf("%d %d",&n1,&n2);
if(n1>n2)

printf("the largest number is %d",n1);
}
else

printf("the largest number is %d",n2);

}

No comments:

Post a Comment