[ create a new paste ] login | about

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

nel - C, pasted on Mar 29:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>

int main(void)
{
    int input;
    int km, m, sm;

    printf("Enter santimeter's: ");
    
    input = 023000;

    km = input/100000;
    m = ((input-(km*100000))/1000);
    sm = input%100;
    
    printf("%d %d %d", km, m, sm);
}


Output:
1
2
Enter santimeter's: 0 9 28
Exited: ExitFailure 6


Create a new paste based on this one


Comments: