Software development tools - Self October 2016 program fill in the blank

//

//  main.cpp

// ruanjiankaifagongju3

//

//  Created by duanqibo on 2019/6/29.

//  Copyright © 2019年 duanqibo. All rights reserved.

// October 2016 "Software Development Kit" program title

 

#include <iostream>

#include <stdio.h>

#include <stdlib.h>

int s1,s2,s3;

int vs(int a,int b,int c)

{

    int v;

    v = a * b * c; // a * b * c is a fill in the blank

    s1=a*b;

    s2 = b * c; // b * c is a fill in the blank

    s3 = a * c;

    return v;

}

int main(int argc, const char * argv[]) {

    int v,l,w,h;

    //clrsrc();

    printf ( "\ n Enter the length, width and height:");

    scanf ( "% d% d% d", & l, & w, & h); // & l is a fill in the blank

    v = vs (l, w, h); // vs (l, w, h) is a fill in the blank

    printf("v=%d  s1=%d  s2=%d  s3=%d\n",v,s1,s2,s3);

    return 0;

}

 

Guess you like

Origin www.cnblogs.com/duanqibo/p/11106761.html