C Program to Reverse a Number - Part 7 | C Programming
HTML-код
- Опубликовано: 11 сен 2024
- in this C Programming language sample program you will learn to write a C Program to Reverse Number entered by the user (Reverse number )
Here we are displaying the message to user using printf function and we are taking user input using scanf function and modules for remainder .
Program For Print Hello World
• C Program For Print He...
HTML Tutorial
• वेबसाइट में मेन्यू कैस...
Please Like and subscribe this Channel
/ @techwithdeveloper
#clanguage #cprogramming #programming #languagelearning #programming #coding #cprogram #cprograms #reversenumber #cbasicprogram #cpattern #LearnCoding #basicprogramming #basicprograms #viralshorts
Thank you very much👍👍👍👍👍👍❤
Tq so much 😊😊 it's working 🎉😊
What is rem
@@user-jx1rg1xb2qrem is for remainder
Bro can we write like rev=rem*10+num??
Bro our teacher wrote while n!=0 is it correct
Yes, it is correct
Bhai rem=num%10 kese huaa mtlb modules(num%10) kese hota he ?
% (Modules) Return Remainder
For Example
14%10 Return 4
12 % 6 Return 0
10%10 Return 0
17%4 Return 1
@@techwithdeveloper ohk 😇 tnx u 🙂🤗
Bhai ye bhi keh sakta hai last digit %10 karne se aata hai
@@NirajKumar-ym7vyreminder
Bro How Can It Work If The First Statement Should Be Variable Declaration Not Clear Screen
Yes u r right
Why u have taken rev =0
It's used for initialize variable rev with zero value.
Bhai ye thoda reverse Bala method samjha sakte ho kya reverse=reverse*10+rem; please
Initial reverse = 0
First iteration: rem = 123 % 10 = 3, reverse = 0 * 10 + 3 = 3.
Second iteration: rem = 12 % 10 = 2, reverse = 3 * 10 + 2 = 32
Third iteration: rem = 1 % 10 = 1, reverse = 32 * 10 + 1 = 321
@@techwithdeveloper bhai ye ese bhi kr skte hai.....?
rev=rev+rem*100;
0:01
For 100
Bro 120 enter karne par reverse order me 21 hi print kar raha hai 0 nahi kyu
Rem matalb kya hota he
It is name of variable
It's not working 😢
What error
I have tried the code but it's not working bro
Share Your Code