From f495b3c5466f99d77288dd4907886236199a734a Mon Sep 17 00:00:00 2001 From: Heyyayaya <116991476+Heyyayaya@users.noreply.github.com> Date: Mon, 31 Oct 2022 04:00:23 +0530 Subject: [PATCH] Create A1.c I have solved this issue and I have attached a sample output to here. please check it. --- C Solutions/A1.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 C Solutions/A1.c 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