[ create a new paste ] login | about

Link: http://codepad.org/F2D9veP2    [ raw code | output | fork ]

C, pasted on Aug 31:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>
int schet(int a,int b, int c);
int main()
{
    printf("%d",schet(4,4,4));
    getchar();
    return 0;    
}
int schet(int a,int b, int c)
{
    int count;
    count=a*b*c-((a-2)*(b-2)*(c-2));
    return count;
}


Output:
1
56


Create a new paste based on this one


Comments: