/*****************************************************************/ // File : bigof3.c // Purpose : To find the biggest of 3 numbers // Author : Nanda Kishor K N // Mail Id : knnkishor@yahoo.com, nandakishorkn@rediffmail.com // Website : www.c4swimmers.esmartguy.com ( WEB MASTER ) // Group : c4swimmers@yahoogroups.com ( GROUP OWNER ) /*****************************************************************/ #include /* Name : main() Purpose : This is the main function that finds the biggest of 3 numbers. This does not call any other function. Parameter : None */ int main() { // Variable Declarations & Initialization // Naming conventions are used like all integer variables should begin with 'i' int iA, iB, iC, iBig; printf("Enter the values for a,b,c : "); scanf("%d,%d,%d",&iA,&iB,&iC); // Find the biggest among 3 numbers. iBig = iA; if ((iB > iA) && (iB > iC)) iBig = iB; else if ((iC > iA) && (iC > iB)) iBig = iC; // Display the result printf("The largest of three numbers is %d.",iBig); return 0; } // End of Program