[ create a new paste ] login | about

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

C, pasted on Apr 19:
1
2
3
4
5
6
7
8
9
#include<stdio.h>
#include<math.h>
void main()
{
    int num = 10, power = 2;
    int result;
    result = pow(num, power);
    printf("%i",result);
}


Output:
1
100


Create a new paste based on this one


Comments: