[ create a new paste ] login | about

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

C, pasted on May 24:
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>
#include <math.h>
 
int main()
{
    float i = 1, j = 23, k = 0, l = 0;
k=i/j;
l=k%160;
 printf("%f",l);
    return 0;
}


Output:
1
2
In function 'main':
Line 8: error: invalid operands to binary %


Create a new paste based on this one


Comments: