[ create a new paste ] login | about

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

C, pasted on Mar 17:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
#include <stdlib.h>
int main()
{
    int number;
    printf("Read the number :");
    scanf("%d",&number);
    int a=number%10;
    number=number/10;
    int b=number%10;
    number=number/10;
    int c=number%10;
    printf("the Sum of three digits : ");
    printf("%d%d%d",a,b,c);



    return 0;
}


Output:
1
Read the number :the Sum of three digits : 690


Create a new paste based on this one


Comments: