C Program to swap first and last digit of a number. c programming | c language | let us c

  Рет қаралды 17,441

Coding Machine

3 жыл бұрын

C Program to swap first and last digit of a number.
►Source Code & Resources: github.com/vansh-arora18/c-question-series/blob/main/c%20programming%20question%205%20swap%20f_l.c
►instagram: coding_machine_
(please make sure to follow me on instagram for daily updates)
coding machine
cuding maxhine
cuding machine
codingmachine
coding maxhine
cudingmaxhine
coding
machine coding
Coding Machine
Codingmachine
CodingMachine
Coding Machine
Coding machine
Coding Machine Cpp
Coding Machine C
Coding machine c
Coding machine cpp
Codingmachinec
Codingmachinecpp
CodingmachineCprogramming
codingmachine cprogramming
CODING MACHINE
CUDING MAXHINE
CUDING MACHINE
CODINGMACHINE
CODING MAXHINE
CUDINGMAXHINE
CODING
MACHINE CODING
#coding #cuding #codingmachine #coding
#cudingmaxhine #coding #machine #Coding #codingmachine #codingmachine
#Codingmachinec #Codingmachinecpp #CodingmachineCprogramming #codingmachine cprogramming #codingmachinecprogramming #codingmachine #CUDINGMAXHINE

Пікірлер: 39
@ultimateprogramming7995
@ultimateprogramming7995 3 жыл бұрын
Sir plzz ans krna.....sir mai phli br programming sik ra hu vo b you tube se pichle 30 days se...toh i want to ask that ye question mujse khud se solve ni hua mtlb muje ye logic click nhi kiya tha khud se...toh kya i am weak in programming and i am not able to find logics?????therefore i need some tutions...or is it common to every biginner
@codingmachine1936
@codingmachine1936 3 жыл бұрын
Hi Lakshay Good to see that you are asking your doubt and it is very common for every beginner.. The thing you should do is to clear your concepts on the language first and then on the basis of that knowledge you would be able to solve as many questions and then you wouldn't find any difficulty in that!
@ultimateprogramming7995
@ultimateprogramming7995 3 жыл бұрын
@@codingmachine1936 sir when you did this question for the first time....you did it by yourself or took any kind of help to see logic?
@codingmachine1936
@codingmachine1936 3 жыл бұрын
@@ultimateprogramming7995 I read the solution once for this question and implemented it on my own and then i was able to solve many questions through this approach.
@ultimateprogramming7995
@ultimateprogramming7995 3 жыл бұрын
@@codingmachine1936 thank you soo muchh
@Farahat1234
@Farahat1234 2 жыл бұрын
@@ultimateprogramming7995 now does your programming improved??
@studentsclub1122
@studentsclub1122 2 жыл бұрын
bhaiya ye log ka use karke aapne, number of digits finds kiya hai kya? plss reply
@adishmangla1183
@adishmangla1183 2 жыл бұрын
I am still confused in log part, why we used log, what it did!!!!
@jasminekaur-sn4vb
@jasminekaur-sn4vb 2 жыл бұрын
achi thi sir videoo. aise hi bnate rho
@mohitgohil5936
@mohitgohil5936 3 жыл бұрын
Dil see thank you brother .... i had done lots of try to done this question in java...but i didnt understand its logic...you give logic for this questions..
@Lalinxdboom
@Lalinxdboom Жыл бұрын
what a perfect explantion
@brokenheart-vd6to
@brokenheart-vd6to 2 жыл бұрын
Bhai upload karte rah video .mast banata hai tu . easy way me .
@sanjanarahman1990
@sanjanarahman1990 2 жыл бұрын
but this code is not working for 5 digit number like 12345.....it works only 4 digit number..why??? please help
@shihabuddin4181
@shihabuddin4181 2 жыл бұрын
try this. #include int main() { long long int number,first, last; printf("Enter number: "); scanf_s("%lld", &number); last = number % 10; while (number>10) { number = number / 10; } printf("Last number=%lld ", last); printf("First number=%lld", number); return 0; }
@arihantjain5237
@arihantjain5237 3 жыл бұрын
This is the easiest method....thank you for this 😄🤘🏻
@codingmachine1936
@codingmachine1936 3 жыл бұрын
Welcome 😊
@dailyinspiration374
@dailyinspiration374 Жыл бұрын
best explanation👍
@shihabuddin4181
@shihabuddin4181 2 жыл бұрын
#include int main() { long long int number,first, last; printf("Enter number: "); scanf_s("%lld", &number); last = number % 10; while (number>10) { number = number / 10; } printf("Last number=%lld ", last); printf("First number=%lld", number); return 0; }
@BscKmajhi
@BscKmajhi Жыл бұрын
great
@saireddyshreshtareddy8523
@saireddyshreshtareddy8523 2 жыл бұрын
Sir can you please explain how can we write this program for a large number such as 10 digited number. The above program is only applicable for just 4 digited number.
@shihabuddin4181
@shihabuddin4181 2 жыл бұрын
try this. #include int main() { long long int number,first, last; printf("Enter number: "); scanf_s("%lld", &number); last = number % 10; while (number>10) { number = number / 10; } printf("Last number=%lld ", last); printf("First number=%lld", number); return 0; }
@Lalinxdboom
@Lalinxdboom Жыл бұрын
josss explanation brother
@rehangurjar721
@rehangurjar721 2 жыл бұрын
TQ so much for this video🤩😘
@ujjawalraj6096
@ujjawalraj6096 2 жыл бұрын
Best explanation
@adhyanjain9136
@adhyanjain9136 3 жыл бұрын
No one could have explained it better
@codingmachine1936
@codingmachine1936 3 жыл бұрын
Thanks for the true response
@shihabuddin4181
@shihabuddin4181 2 жыл бұрын
I could. #include int main() { long long int number,first, last; printf("Enter number: "); scanf_s("%lld", &number); last = number % 10; while (number>10) { number = number / 10; } printf("Last number=%lld ", last); printf("First number=%lld", number); return 0; }
@lifeofhoney6859
@lifeofhoney6859 3 жыл бұрын
thanks for such an understanding video.
@nitishlohiya2773
@nitishlohiya2773 2 жыл бұрын
Thnku sir
@surendarkumar-jx9ui
@surendarkumar-jx9ui 2 жыл бұрын
perfectly explained
@avinashsingh5290
@avinashsingh5290 2 жыл бұрын
That's not work odd digit number like 12345 or others it's only work on even digit number like 123456 etc
@texpertyt6270
@texpertyt6270 2 жыл бұрын
What is font name ?
@aryanshrivastava7258
@aryanshrivastava7258 3 жыл бұрын
Nice one🔥
@codingmachine1936
@codingmachine1936 3 жыл бұрын
Thanks 🔥
@shwetaarora3248
@shwetaarora3248 3 жыл бұрын
Completely understood🤘
@codingmachine1936
@codingmachine1936 3 жыл бұрын
Glad you understood😇
@fusionx4945
@fusionx4945 2 жыл бұрын
Thx
@sanjeevdutta7760
@sanjeevdutta7760 2 жыл бұрын
👍
@v.saranshh
@v.saranshh 3 жыл бұрын
ez ❤️😊
Un coup venu de l’espace 😂😂😂
00:19
Nicocapone
Рет қаралды 10 МЛН
Cool Parenting Gadget Against Mosquitos! 🦟👶
00:21
TheSoul Music Family
Рет қаралды 12 МЛН
Un coup venu de l’espace 😂😂😂
00:19
Nicocapone
Рет қаралды 10 МЛН