Bro oru oru video la neenga oru oru topic teach pandringala adhe topic ah epdi logic ah oru coding la implement panni output vangardhunu just oru compilation pola podunga broo
FACTORIAL OF A NUMBER package Tasks; public class Factorial_of_a_number { public static void main(String[] args) { //int n = 5; int fact = 1; for (int i = 5; i>1; i--) { fact = fact * i; System.out.println(fact); } System.out.println(fact); } }
To convert the sum calculation into a factorial replace the addition operation with multiplication , like sum =sum + i; replaced fact =fact*i; ......................................................................................................................................................... int n = 5; int factorial = 1; for (int i = 1; i
//Scenario - Imposition public class ForLoop { public static void main(String[] args) { String name = "Try to learn the code"; int noOfCount = 5; for (int i = 0; i
public class Vehicle { public static void main(String args[]) { int n=1; int sum=1;// for(int i=5;i>=n; i--){ sum = sum * i; // System.out.println(sum); } System.out.println(sum); } }
import java.util.Scanner; public class Loops { public static void main(String[] args) { Scanner input=new Scanner(System.in); long f = input.nextInt(); long factt =1; for(int i=1;i
public class Fact {
public static void main(String[] args) {
int n=5;
int fact=1;
for(int i=1;i
Output answer:120 varruthu bro
int n = 5;
int sum = 1;
for (int i=1; i
Crt
class FactorialExample{
public static void main(String args[]){
int i,fact=1;
int number=5;//It is the number to calculate factorial
for(i=1;i
public class factorial {
public static void main(String[] args) {
int f = 5;
int factt = 1;
for(int i=1;i
That's Perfect bro🤩
Fact ku en bro tt potu irukom
@@mr.fakesmiler0_054 adhu variable dhaane so Namma ishtam dhan epdi venaa kodukalaam variable ku
Output 120
Bro oru oru video la neenga oru oru topic teach pandringala adhe topic ah epdi logic ah oru coding la implement panni output vangardhunu just oru compilation pola podunga broo
public class demo{
public static void main(String[] args) {
int a= 5;
int mul=1;
for(int i=1;i
Very impressive loved it..
FACTORIAL OF A NUMBER
package Tasks;
public class Factorial_of_a_number {
public static void main(String[] args) {
//int n = 5;
int fact = 1;
for (int i = 5; i>1; i--)
{
fact = fact * i;
System.out.println(fact);
}
System.out.println(fact);
}
}
Very clear explanation thank you bro❣
To convert the sum calculation into a factorial
replace the addition operation with multiplication , like sum =sum + i; replaced fact =fact*i;
.........................................................................................................................................................
int n = 5;
int factorial = 1;
for (int i = 1; i
//Scenario - Imposition
public class ForLoop {
public static void main(String[] args) {
String name = "Try to learn the code";
int noOfCount = 5;
for (int i = 0; i
🤣👏
public class ForLoop {
public static void main(String[] args) {
String name="mageshkannappan509";
int count=4;
for(int i=1;i
public class Magesh{
public static void main(String[] args){
for(int i=0;i
Coding laam nallave understand aagudhu just to gain oru logical thinking kaaga bro kekardhu
Bro program la n value kudukama.output la random value enter pannanumna ?
public static void main(String[] args) {
int n = 5;
int Mul = 1;
for (int i=1; i
public class HelloWorld {
public static void main(String[] args) {
int n = 5;
int fact =1;
for(int i=1;i
public class Vehicle {
public static void main(String args[]) {
int n=1;
int sum=1;//
for(int i=5;i>=n; i--){
sum = sum * i;
// System.out.println(sum);
}
System.out.println(sum);
}
}
i find a 2 chances in program ....class factorial {
public static void main(String[] args) {
int n = 4;
int sum=1;
for (int i = 1; i
public class Main {
public static void main(String[] args) {
int i;
int facto=1;
for(i=1;i
which app using brother to video edtiting could you tell me ?
i
if i is initialised as 0 , then i < 100 is 100 times as it starts from 0 !
i
Bro your are correct 😊
import java.util.Scanner;
public class Loops {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
long f = input.nextInt();
long factt =1;
for(int i=1;i
Bro c++ video podunga
😅
Bro C++ video poduga pls
Pattern program poduga bro
Super bro
{
Scanner scan = new Scanner(System.in);
int num = scan.nextInt();
int fact = 1;
for (int i=num; i>=1; i--)
{
fact = fact * i;
}
System.out.println(fact);
}
Kongam slow ha brief ha sollunga bro.u explain good only but am non IT background understand slowly.dont mistake me bro. 👍👍👍
learn c or python he explained slowly and briefly ...
Bro IT non IT nu lam kidaiyadhu bro basics dha bro yelamey java basic la erundhu parunga easy aa erukum
fact=fact*i
int fact=1;
int n=5;
for(int i=1;i
Int n;
f =1;
for(int i=1;i