diff --git a/C Solutions/A1.c b/C Solutions/A1.c new file mode 100644 index 0000000..6423e16 --- /dev/null +++ b/C Solutions/A1.c @@ -0,0 +1,24 @@ +#include + +int main() +{ + //initializing + int n,b,c; + + //get inputs + printf("please enter an integer = "); + scanf("%d",&n); + + //logics + b = n+n*10; + c = n+n*10+n*100; + + //printing function and output + printf("Answer is %d",n+b+c); + + return 0; +} + +//output +//please enter an integer = 5 +//Answer is 615