White Leather Chapter 1

Source: Internet
Author: User

Today mainly do some 1.5 in the summary and practice, sure enough to change the language thinking ... All kinds of uncomfortable ah ...

scanf all kinds of forgotten &, there are all kinds of forgotten return 0 ...

#include <stdio.h>#include<math.h>int  main () {    int  a,b,c;     Double Ave;    scanf ("%d%d%d",&a,&b,&c);    Ave= (a+b+c)/3;    printf ("%.3lf", ave);     return 0 ;}
Average
#include <stdio.h>#include<math.h>int  main () {    double  f,c;    scanf ("%lf",&f);    c=5* (f-C)/9;    printf ("%.3lf", c);     return 0 ;}
Temperature
#include <stdio.h>#include<math.h>int  main () {    int  n,s;    scanf ("%d",&N);    s= (1+n) *n/2;    printf ("%d", s);     return 0 ;}
sum
#include <stdio.h>#include<math.h>intMain () {intN; Doublem; Const DoublePi=4.0*atan (1.0); scanf ("%d",&N); M=(float) n/ the*Pi; printf ("%.3LF%.3LF", Sin (m), cos (m)); return 0;}
Sincos
#include <stdio.h>#include<math.h>int  main () {    double  x1, Y1,x2,y2,d;    scanf ("%lf%lf%lf%lf",&x1,&y1,&x2,&y2);    D=sqrt ((x1-x2) * (X1-X2) + (y1-y2) * (y1-y2));    printf ("%.3lf", D);     return 0 ;}
Distance

White Leather Chapter 1

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.