2
一月

程式設計一程式 12/30: quiz2a

   Posted by: admin   in 101(上)程式設計(一)

#include <stdio.h>
#include <stdlib.h>
 
int main(int argc, char *argv[])
{
    int a, b, c, d;
    int sum;
    a = atoi(argv[1]);
    b = atoi(argv[2]);
    c = atoi(argv[3]);
    d = atoi(argv[4]);
 
    sum = a*a*a*a + b*b*b + c*c +d
 
    printf("(%d, %d, %d, %d) ans=%d", a, b, c, d, sum)
    return 0;
}

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Tags: , ,

This entry was posted on 星期三, 一月 2nd, 2013 at 08:39:10 and is filed under 101(上)程式設計(一). You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

4 Trackbacks/Pings

  1. Patrick    七月 26 2014 / 8下午:

    comus@lured.amorphously” rel=”nofollow”>.…

    thanks!…

  2. donald    七月 27 2014 / 3上午:

    nevah@mobilized.hym” rel=”nofollow”>.…

    ñïñ!…

  3. Max    十二月 24 2014 / 10上午:

    fela@makeup.ecumenist” rel=”nofollow”>.…

    thanks….

  4. Steve    一月 28 2015 / 4下午:

    goodby@blanket.fresnel” rel=”nofollow”>.…

    good….

Leave a reply

Name (*)
Mail (will not be published) (*)
URI
Comment