EvoNext
1.79K subscribers
272 photos
16 videos
266 files
484 links
Download Telegram
How to find the factorial of any number using for loop.? That accept a num from user

#include<iostream>
using namespace std;
int main()
{
int no,f=1;
cout<<"Enter any number\n";
cin>>no;
for(int i=1;i<=no;i++)
{
f=f*i;
}
cout<<"Factorial="<<f;
}



<tryOnYourCompiler>


👉👉
https://t.me/PROGRAMINGLANGUAGES1
CALL BY VALUE


#include<iostream>
using namespace std;
void add(int y,int z)
{
int x;
x=y+z;
cout<<"Add="<<x;
}
int main()
{
add(10,20);
}


//the output is ....30
CALL BY REFERENCE

#include<iostream>
using namespace std;
void add(int *y,int *z)
{
int x;
x=*y+*z;
cout<<"Add="<<x;
}
int main()
{
int a=20,b=50;
add(&a,&b);
}


The output is. ...70
This media is not supported in your browser
VIEW IN TELEGRAM
♻️ ?Quize of this week


https://t.me/PROGRAMINGLANGUAGES1
—- is a user controlled jump statement which is controlled by the user.
Anonymous Quiz
60%
break;
13%
goto
15%
jump
6%
defualt
6%
stop
cpp-for-loop @ltc.pdf
122.8 KB
Nice pdf for -cpp looping
- nested looping
- and more

👇🏿👇🏿👇🏿👇🏿👇🏿👇🏿👇🏿👇🏿👇🏿👇🏿👇🏿👇🏿👇🏿
👉🏿https://t.me/PROGRAMINGLANGUAGES1
👆🏿👆🏿👆🏿👆🏿👆🏿👆🏿👆🏿👆🏿👆🏿👆🏿👆🏿👆🏿👆🏿
👍1
👆👆👆👆👆👆🏿👆🏿👆🏿

🈸 c++droid app
Good IDE. For c++ tutors on your mobile or tablet

https://t.me/PROGRAMINGLANGUAGES1
👍1
Watch "Introduction to For Loops in Python (Python Tutorial #5)" on YouTube
https://youtu.be/OnDr4J2UXSA
gcm_and_lcm.cpp
835 B
A program to find LCM and GCD of two integers.. use code::block or Falcon++
READING MATERIALS FOR C++
This media is not supported in your browser
VIEW IN TELEGRAM
👍1