C Language Code Programming questions Summary: Find the largest number of three data

Source: Internet
Author: User

Find the largest number of three data

The program code is as follows:

1 /*2 March 9, 2017 12:04:373 function: Find the largest value in three data4 */5#include"stdio.h"6 7 intFunint,int,int);8 9 intMain ()Ten { One     intA, b,c; A  -printf"Please input three number: \ n"); -  thescanf" %d%d%d",&a,&b,&c); -  -printf"The maxium number is %d\n", Fun (a,b,c)); -  + } -  + intFunintAintBintc) A { at     if(A-B >0&& a-c >0) -         returnA; -     Else if(B-a >0&& b-c >0) -         returnb; -     Else  -         returnC; in } - /* to Summary: + results shown in vc++6.0: - ———————————————————— the Please input three number: *  About $ The maxium number isPanax Notoginseng ———————————————————— -  the */

C Language Code Programming questions Summary: Find the largest number of three data

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.