Ritwik
Kumar Vipin
Then type Fedora paste
Kumar Vipin
For only C programming
Are you using windows in your system 🤔
Kumar Vipin
Okk
Now click on first link Paste.Fedora
Kumar Vipin
Okk
Now what you saw on screen 🤔
Vikas
10*
Ritwik
Kumar Vipin
10*
Then code block is best for you 😉
Pankaj
Any help me to setup visual studio code with c++ compilation.
Vikas
👍
Kumar Vipin
Looks like notepad
Ya paste your code there and click submit button on right corner.
Ritwik
Ya paste your code there and click submit button on right corner.
I said I don't have any clue about the Armstrong code
Kumar Vipin
Any help me to setup visual studio code with c++ compilation.
That's also available on official site of VScode have a look from there 😁
Ritwik
What can I paste there
Kumar Vipin
I said I don't have any clue about the Armstrong code
Ooh then google what's Armstrong code
Kumar Vipin
I am also doing same 😁😁
Ritwik
Ooh then google what's Armstrong code
It's only using while loop and I'm looking for 'for loop'
Hunter
Hey everyone one Armstrong number is the simplest program
Pankaj
That's also available on official site of VScode have a look from there 😁
I installed it on my laptop but it not compiled my program. It need extra configuration Can u plz hlp me
Hunter
Yes sure
Ritwik
Yes sure
Show please??
Kumar Vipin
Show please??
Dude if you have code with while loop then it would be easy to convert that in for loop
Hunter
#include <stdio.h> int main() { int number, originalNumber; int remainder, result = 0; printf("Enter a three digit integer: "); scanf("%d", &number); originalNumber = number; while (originalNumber != 0) { remainder = originalNumber%10; result += remainder*remainder*remainder; originalNumber /= 10; } if(result == number) printf("%d is an Armstrong number.",number); else printf("%d is not an Armstrong number.",number); return 0; }
Kumar Vipin
Sorry but I can't.. cause I am a beginner
Ooh Then learn with some simple example I can give if you want.
Hunter
Then remove while use for
Kumar Vipin
Then remove while use for
He is beginner he has to learn for loop first.
Ritwik
Then remove while use for
You mean for(originalNumber!=0)
Kumar Vipin
You mean for(originalNumber!=0)
Yes something like that
Hunter
Nope
Ritwik
Nope
Then what??
Anonymous
#include <stdio.h> #include <math.h> int main() { int number, originalNumber, remainder, result = 0, n = 0 ; printf("Enter an integer: "); scanf("%d", &number); for (originalNumber = number; originalNumber != 0;originalNumber /= 10) { ++n; } for (originalNumber = number;originalNumber != 0; originalNumber /= 10) { remainder = originalNumber%10; result += pow(remainder, n); } if(result == number) printf("%d is an Armstrong number.", number); else printf("%d is not an Armstrong number.", number); return 0; }
Kumar Vipin
for(;originalNumber!=0;)
Kumar Vipin
Then what??
Replace that line with this
Hunter
for (originalNumber = number; originalNumber != 0;originalNumber /= 10)
Hunter
👍
Ибраги́м
std::reference_wrapper<type>
Sir Efficient, will u do this in Assembly? cc: @ollirz
klimi
^•^
klimi
Please give me some latest IDE names
There is nice wikipedia article about that
BinaryByter
Sir Efficient, will u do this in Assembly? cc: @ollirz
CODE_BEGIN equ $ mov [CODE_BEGIN], NEWPOINTER
BinaryByter
always reuse your codespace ^^
BinaryByter
Unless you are a compiler
BinaryByter
then dont because you might break everything
Hunter
Ok
Anonymous
Thank you rose, its a pleasure being a part of this group
klimi
Ok
It doesnt work, its in zoho creator and it wants money from me
Anonymous
any OpenGL guy here?
Dima
Yeah
Dima
Yay 7k of indians
Anonymous
Anonymous
Yeah
klimi
Yeah
Anonymous
I'm a new guy pls
klimi
I know
Anonymous
Aryt
klimi
Lone Wolf try now
Anonymous
function () or fuction()? (coding style)
Anonymous
Thanks
Anonymous
any benefits
Anonymous
like searching, debugging
klimi
Anonymous
I find the space makes it more readable
MᏫᎻᎯᎷᎷᎬᎠ
Wow 7K
Mat
MᏫᎻᎯᎷᎷᎬᎠ
Sorry i Don't drink
MᏫᎻᎯᎷᎷᎬᎠ
:)
Anonymous