Ho sake to insta pe share karo ye playlist 🙏🏻🙏🏻 If you share this playlist, make sure to tag me in your Instagram story. Instagram: instagram.com/codewithharry
@vinayak57884 жыл бұрын
Love You Harry Bhai :) You are the best
@akashrajiwale7644 жыл бұрын
Harry sir data structure ka full tutorial plzz (for beginners)
@supriyalonkar4494 жыл бұрын
OK
@surajundrekar96044 жыл бұрын
Bro please solve my problem modulenotfounderror: no module named 'urllib3 please give solution please please
@ramsagarsingh5444 жыл бұрын
Thnx
@prajwalm.s79763 жыл бұрын
13:46 public class StarPattern { static void pattern(int n){ for (int i = 0; ii;j--){ System.out.print("*"); } System.out.println(); } } public static void main(String[] args) { pattern(4); } }
@AshishKhetwal8 ай бұрын
thanks
@aritradas84204 ай бұрын
Thanks bro🎉🎉
@gamershub92192 ай бұрын
Bhai Maine i-- or j++ chalaya
@himanshigupta96413 жыл бұрын
These practice sets makes every question clear...!!!.Your efforts are highly appreciated sir.
@pawannane15403 жыл бұрын
20:19 static void reverse_pattern_recursion(int n){ if (n == 0) { return; } for (int i = 0; i < n; i++) { System.out.print("* "); } System.out.println(); reverse_pattern_recursion(n - 1); }
@balboa72 жыл бұрын
Thanks for the help. Earlier , I knew the logic, but when i tried, i was getting infinite loop. Anyways thanks
@harshit02032 жыл бұрын
13:44 QUESTION 4: static void pattern2(int n){ for ( int i = 0; ii ; j--){ System.out.print("*"); } System.out.println(""); } } // Under main method: pattern2(4);
@Prototype.abdullah2 жыл бұрын
return type
@Oksirthankyou Жыл бұрын
Using recursion
@PROGRAMMER_CODER2 жыл бұрын
29:00 static double temperature(float c){ return (c*1.8)+32; } public static void main(String[] args) { Scanner T=new Scanner(System.in); System.out.print("Enter The value of Celsius(C) : "); float t= T.nextFloat(); System.out.println("Celsius to Fahrenheit Temperature is : "+temperature(t)+" F"); }
@RishitaTomar-ku8ob Жыл бұрын
👍
@kishanpatel12644 жыл бұрын
Arre yaar kitni mehnat karte ho tum bhai. 2 videos in a day. Ek hi to dil hai kitni bar le jaonge yaar. Thank you very very much.
Formula in Java Expression (n*9.0/5.0) + 32.0 Sir your Videos, practice sets and chapter notes are very helpful to students in clearing their concepts of Java.👍
@SoothingWaves4226 Жыл бұрын
make it like 9.0f
@himankgupta3252 жыл бұрын
sach btau to bilkul bhi man nhi krta practice set krne ka but jab practice set complete ho jata hai to bhaut kuch sikhne ko milta hai
@mohitdahal22574 жыл бұрын
Life was going great until the recursive method concept came in. It is like code doing time travel
@naveenkamboj94893 жыл бұрын
Sahi bhai
@programming_praneet17793 жыл бұрын
😂😂 well , but harry teached it in a easy way, but yeah it was complicated
@yashjha21937 ай бұрын
@@programming_praneet1779 still complicated listening to this(recurssion) for 4th time
@harshdesai4043 жыл бұрын
13:19 j's loop will work j0; i--){ for (int j=0; j
@someshlakhe5633 жыл бұрын
You can also use arr.length to devide the sum in problem 6
@sailajavankayala7214 жыл бұрын
ek vdo banani mai bahut hard work lagti hain dosto like toh kuch bhi nhi hai uske samne ...har vdo mai like dil se aur yaad se kar diya karo ...itne mehnat aur consistency k liye toh ..appreciation banta h.....extremely hearty regards to sir ..
@cuberkam90724 жыл бұрын
13:22 Second loop : for(int j = n; j> i ; j--) { //Code to print a star }
@HemantKumar-wy1hj4 жыл бұрын
Y problem no 7 da solution v bta do
@amanbhobhria44184 жыл бұрын
28:53 for conversion of celsius to faherenit static void Temperature(float c) { if (c ==0) { System.out.println("32 Faherenit "); } else { float f = (c * 9 / 5) + 32 ; System.out.println(f+" Faherenit"); } } public static void main(String[] args) { Temperature(45); }
@mr.arindamkhan3 жыл бұрын
Thank you sir
@AmaanKhan-mk5hf3 жыл бұрын
static void Temperature(float c) { float f = (c * 9 / 5) + 32 ; System.out.println(f+" Faherenit"); } Itne mai kaam hojaata
@XamsLyf3 жыл бұрын
you can also do this public class main { static float Temperature(float c) { if (c ==0) { return 32; } else { float f; return f = (c*9 / 5) + 32; } } public static void main(String[] args) { float p = Temperature(45); System.out.println(p); } }
@shivamsrivastava7486 Жыл бұрын
Bhailog humlog static void use krte kbhi static int kab kya use krna h kaise smjhen??
@techpentagon1014 Жыл бұрын
static void temperature(float f){ System. out.println(((f-32)/9)*5); } public static void main(String[] args){ temperature (56);
it creates pattern **** *** ** * not * ** *** ****
@mayureshlavangare1162 жыл бұрын
20:25 Problem 6: Find the average of set of nos passed as arguments using VarArgs: public class chap7_Practice_set { static int avg(int ...arr){ int result=0; for(int element:arr){ result = result+element; } return (result/arr.length); } public static void main(String[] args) { int c = avg(1,2,3,4,5,6,7); System.out.print("The avg of nos passed as arguments are "+c); } }
@deepanshusaini62422 жыл бұрын
19:37 Find average of given number in method static float average(float...marks){ float total=0; for (float scan:marks){ total+=scan; } System.out.println(total/ marks.length); return total; } public static void main(String[] args) { float sum=average(1,2,3,4); }
@vedaprajnachakrabarti34722 жыл бұрын
what is the significance of writing sout before the return? i wrote return before sout and it didn't work but when i wrote first sout and then return it worked. please help
@a038fawaazahmed32 жыл бұрын
This code will print 2 answers 1 = sum of numbers and then print the average.For make it easy to understand just write total +=a/arr.length; under the for each loop.
@horn8028 Жыл бұрын
Question is to be solved by number passed as argument and you have solved it directly. Please if you could update the answer as per Qn. It will be very helpful. Thanks
@fascinatingtop10155 ай бұрын
static float avg (float ...tpp){ float result = 0; for (float e:tpp){ result = result + e; } return result/tpp.length; } public static void main(String[] args) { float result = avg(4,5,6,7); System.out.println(result); }
@tusharnarang43344 жыл бұрын
Temp Conversion: static float conversionTemp(int n){ if(n==0){ return 32f; }else { return n*9/5+32f; } } public static void main(String[] args) { Scanner sc= new Scanner(System.in); System.out.println("Enter the Temp you want to convert"); int temp= sc.nextInt(); float res= conversionTemp(temp); System.out.println(res);
@ultrahindustanigamer8733 Жыл бұрын
Bhai tujhe f hatana hoga Varna yeh error throw karega
@iamnisk82604 жыл бұрын
I remember when I had zero knowledge on java and willing to dive into this java course. so what I first did was, I searched for complete java course on KZbin in hindi. The first video i found there was yours . It was about 2-3 hours long. And then I got some basic idea where to get started and learned from different resources. Now even if i say i know java not much but i have some basic concept on it, i'm not actually very confident on what i've learnt for all this time. I'm really confused because learning from websites are actually hard . They are not providing tuttorials step by step but rather focusing on just completing the syllabus with no detail information. Today as i"m writing this, even if i say i'm not much confident on saying that i know java , What i'm really confident is, all those websites are missing things for beginners like us . As i was back to youtube where i started , i was researching for honest complete tutorial on java. Definitely there are some good channels like telusko , programming knowledge, but still there are things missing . and then i found this playlist , I'm planning to study from this playlist now but still i'm bit confuse here, i know these basic tutorial so it wont take me long to cover your playlist but what after completing these 35 videos ? As there's no upload time for your upcoming java videos , So i'm afraid wether to go through this playlist or not because what if i get more confused after the end of this playlist ? wether to wait for your new java videos or again go for new resources ? As i've seen some videos from this playlist, i'm really happy that you've gone in much more detail than any other youtuber but still , a small suggestion from your fan , brother . please reply with the upload time clarifying when to expect your new video for java . please _ with love
@joselitorebello68303 жыл бұрын
19:40 Question 6 solution : - static int avgN(int...num){ int elements = num.length; int sum = 0; for(int a: num){ sum +=a; } return sum/elements; }
@studywithsumanta3 жыл бұрын
thank you
@khushalchandak85443 жыл бұрын
Nice
@pankajgangwar72573 жыл бұрын
pls explain pattern 2 using recursion
@khushalchandak85443 жыл бұрын
@@pankajgangwar7257 timelapse ke saath pucho ek baar
@pankajgangwar72573 жыл бұрын
@@khushalchandak8544 thanks but ab ho gya run , it was just a silly mistake 😂
@bugsfounder3 жыл бұрын
// QUESTION 6. static int average(float ...args){ float sum = 0; float average = 0; for (int i = 0; i < args.length; i++) { sum+=args[i]; } // System.out.println(sum); return (int) (average = sum/args.length); }
@lifeandliving2928 Жыл бұрын
bro i coded this public class Main{ static int Sum(int n){ int sum = n*(n+1)/2; return sum/n; } public static void main(String[]args){ int x = Sum(3); System.out.println(x); } }
@jatanyt13824 жыл бұрын
This is very helpful course for beginners who are trying to learn java programming language. Thankyou so much
@saniyasyed26383 жыл бұрын
13: 40 --> for(int j=0; j
@pranav88833 жыл бұрын
just use n-i
@wasim_17 Жыл бұрын
13:30 for (int j=0; j < n - i; j++)
@SaurabhJeena-sh4gh8 ай бұрын
Nhi sirf n hoga I solved it
@bluejprogramming1846 ай бұрын
(Not mocking you or anything) Tumhare logic se: 1st iteration - 0 to n-1 (n times) 2nd iteration - 1 to n-2 (n-2) times.... mistake right at 2nd iteration
@anti-bug2 жыл бұрын
The answer of the questions that harry told us to solve 😍😍 // Question 5 => static int fibonacci_num(int index) { if(index==0 || index==1) { return index; } else { return fibonacci_num(index-1) + fibonacci_num(index-2); } } public static void main(String[] args) { /* Question 5: Write a function to print the nth term of the Fibonacci series using recursion. */ int i = 13; System.out.println("The " + i + "th term of fibonacci series is: " + fibonacci_num(i)); } } // Question 6 => float average(float ...arr) { float total = 0; for(float e: arr) { total += e; } float avg = total / arr.length; return avg; } public static void main(String[] args) { /* Question 6: Write a function to find the average of a set of numbers passed as arguments. */ Scanner sc = new Scanner(System.in); System.out.print("How many numbers you want to pass? : "); int a = sc.nextInt(); float [] arr = new float[a]; for(int i=0; i static void pattern_recur(int rows) { if(rows > 0) { for(int i=rows; i>0; i--) { System.out.print("*"); } System.out.println(); pattern_recur(rows-1); } } public static void main(String[] args) { /* Question 7: Repeat problem 4 using Recursion. */ int r = 4; pattern_recur(r); } // Question 9 static float fahrenheit(float cel) { float fahren = (cel * (9/5.0f)) + 32.0f; return fahren; } public static void main(String[] args) { /* Question 9: Write a function to convert Celsius temperature into Fahrenheit. */ float celcius = 15.7f; System.out.println(celcius + " °C" + " -> " + fahrenheit(celcius) + " °F"); } // Question 10 => static int nSum(int n) { int sum = 0; for(int i=1; i
@fayazmubarak75972 жыл бұрын
@badalsahoo39022 жыл бұрын
Thank you bro for problem no 7 , my program's answer have same with your program but I did not see what is my mistake , then I see your code , and move pattern2_rec(n-1) logic to the line when the for loop is end! and it works , thanks😊💖
@yusrax32 жыл бұрын
thnks for ques 7 i did same prog by putting loop in main method while calling function but after looking at ur code i found i could've directly put loop in func 👍🏻
@jdcreates7194 Жыл бұрын
Thanks bro
@dayanandjajodia8698 Жыл бұрын
Thanks
@sharkieislive Жыл бұрын
Amazed how all it needed was moving 1 line public class Main { static void patt4_rec(int n) { if(n>0) { for(int i = 0;i
@Dxiag1234 жыл бұрын
Great. Harry Bhai, you always make a smile on our face everytime. This revolution is going to be legendary.🙇🏻♂️🙇🏻♂️
@135_afshashaikh22 жыл бұрын
13:40 static void pattern1 (int n) { for (int i = 0; i < n; i++) { for (int j = 0; j < n-i; j++) { System.out.print ("*"); } System.out.println (); } }
@harshkachhway4646 Жыл бұрын
29:01 [6/7, 10:13 PM] Harsh Kachhway: // q9. celsius to fahrenheit converion using function /method. /* static void conversion(double n){ System.out.print(n+"°c ="); System.out.print(((n*9/5)+32+"°F")); }*/ [6/7, 10:14 PM] Harsh Kachhway: in main function //conversion(5.5);
@kapilrana40433 жыл бұрын
20:01 static int sum(int ...arr){ //Availiable as int [] arr; int result=0; for (int a:arr){ result +=a; } return result; } public static void main(String[] args) { float result=sum(3,5,6,7,8,9); System.out.println(result/6);
@blaze8563 жыл бұрын
rather use arr.length so that you dont have to change the denominator foe average
@fascinatingtop10155 ай бұрын
As a beginner, I created this Fibonacci, considering start as index as what I thought and had a look from wiki : public static int fib(int start1,int start2, int end) { int empty; if (end ==1 || end ==0) { return start1; } else { int sum = start1 + start2; return fib(start2, sum, end-1); } } public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter the number whose term you'd like to see "); int end = sc.nextInt(); int start1 = 0; int start2 = 1; int result = fib (start1, start2, end); System.out.println(result); }
@RitikKumar-rf4dc3 жыл бұрын
13:15 public class Main{ public static void pattern(int n){ for (int i=n;i>=0;i--){ for (int j=i;j>0;j--){ System.out.print("*"); } System.out.println(); } } public static void main(String[] args) { pattern(4); } }
@junaidjameel50493 жыл бұрын
Thanks Bhai
@sanketzanje22103 жыл бұрын
👍👍
@vaibhavbangadkar64263 жыл бұрын
@P U B G STARS int a i think
@vaibhavbangadkar64263 жыл бұрын
Bhai infinite stars ban gye
@vaibhavbangadkar64263 жыл бұрын
@P U B G STARS abhich run kiya
@Video_4U Жыл бұрын
20:15 q no 6 static int average(float ...args){ float sum = 0; float avg = 0; for (int i = 0; i < args.length; i++) { sum+=args[i]; } // System.out.println(sum); return (int) (avg= sum/args.length); } public static void main(String[] args) { float c = average(55,45,54,56,65); System.out.println(c); }
@XamsLyf3 жыл бұрын
20:20 Problem -7 solution public class Main { static void pattern2_rec(int n){ if (n>0){ for(int i=n; i>0; i--) // i=0 ; i
@nazarakhan27973 жыл бұрын
Thank you so much brother
@punnamsravan7293 жыл бұрын
Tq bro
@jayendrayadav32313 жыл бұрын
thank u buddy
@shivpansara84692 жыл бұрын
Q7 static void pattern2(int n) { if(n>0){ for (int i = 1; i
@shankarvishwakarma94003 жыл бұрын
Isn't worry big brother Video lecture is amazing We'll are liking and supporting And at first big thankful , that u re providing best and free classes ❤️❤️
@Mr.AIAnukalp Жыл бұрын
ye Isn't worry kya hota he?
@ShivamSingh-te9tl Жыл бұрын
@@Mr.AIAnukalp I think he want to say Don't worry!
@Mr.AIAnukalp Жыл бұрын
@@ShivamSingh-te9tl bhai tum ab reply kar rhe ho 🤣🤣 btw happy coding😙😙
@ShivamSingh-te9tl Жыл бұрын
Arey wo comment kisi aur ka h bro! btw yaa Happy Coding : )
@sanvirathore39 Жыл бұрын
29:19 public class newset{ static float conv(float n){ float temp=(n*1.8f)+32; return temp; } public static void main(String[] args) { System.out.println(conv(20f)); } }
@fardeenkhan46094 жыл бұрын
28:50 static float DtoF(float d){ float mul = d * 9/5; float add = mul + 32f; return add; } public static void main(String[] args) { Scanner sc = new Scanner(System.in); float d = sc.nextFloat(); System.out.println(DtoF(d));
@rishimegharaj29132 жыл бұрын
Bro float mul=d*(9/5f); Or your d gets multiplyed by 9 first by Associvity
@shafiullahamiri89002 жыл бұрын
sir as I am started watching your course, I am very happy and thankful from u sir . This is problem 4 in video No. 35 for (int j=4; j>i-0; j--){ System.out.print("*"); } this is the solution to print following **** *** ** *
@anshdholakia7144 жыл бұрын
Haris, I will give you money once I start to earn from freelancing because I have never gone to a coaching class and have only been taught from your videos. I will applaud your video once I receive some money
@ShiveshSumbly3 жыл бұрын
one more way of solving the pattern problem using recursion and without using any loops: static int i = 0 ; static int j = 0 ; static void star(int n ) { if(ii) { System.out.println(); i++; j=0; } star(n); } }
@shashaankkota90203 жыл бұрын
20:20 Problem 7 public class Prob7 { static void pattern4(int n){ if(n>0){ for(int i=n; i>0; i--){ System.out.print("*"); } System.out.println(); pattern4(n-1); } } public static void main(String[] args) { pattern4(4); } }
@fazal90133 жыл бұрын
Thank u.I unable to understand where to call the function.
@bill-cipher0002 жыл бұрын
wow
@Vishnu4Vinita2 жыл бұрын
Thanks bhai
@adarshkamji86434 жыл бұрын
6th Answer: public class Main{ static int avg(int...arr){ int sum = 0; int result=0; int n = arr.length; for(int i=0;i
@joselitorebello68303 жыл бұрын
20:18 Question 7 solution :- static void patRec2(int num){ if (num >0){ for (int i = 0; i
@Kanha03213 жыл бұрын
thank you so much
@harshraval33073 жыл бұрын
thank you so much
@shaileshhacker3 жыл бұрын
Ye to question 8 ka solution hai
@XamsLyf3 жыл бұрын
Yes e 7 ka nhi hai
@bhavyajain_163 жыл бұрын
ans 6: static float varags(int...arr) { int sum = 0; for (int a:arr) { sum+=a; } float avr = sum/arr.length; return avr; } public static void main(String[] args) { System.out.print(" Ans 6: "); System.out.println("The average of a set of number is: "+varags(1,2,3)); }
@eaglehunter64873 жыл бұрын
Question 9 static double faharneit(double c){ return (c*9/5)+32; } public static void main(String[] args) { double a,c; Scanner sc = new Scanner(System.in); System.out.println("Enter temperature in celcius"); c=sc.nextDouble(); System.out.println("Faharneit temperature is: "+faharneit(c)); }
@copelofficial4932 жыл бұрын
scanner utility is missing
@IshmeetSinghBaweja2 жыл бұрын
Harri bhai mera logic building aapse strong hai 😀 Maine start priting wala program pahli baar me hi sahi likha, jabki aapse mistake hui, koi ni, chalta hai. 😀😀😀😀
@dnyaneshwarigund96162 жыл бұрын
19:37 public class QuestionSixAnswer { // Write a function to find average of a set of number passed as argument // Method Definition: static double Average (int ... a) { double sum = 0; for (int i:a) { sum += i; } return sum / a.length; } public static void main (String[] args) { // Write a function to find average of a set of number passed as argument // Method Call: System.out.println ("The average of 1,2,3,4 and 5 is: " +Average (1, 2, 3, 4, 5)); } }
@Jobajeki Жыл бұрын
Bro ispe 'a' ko call kaha pe kiaa 😮
@krishnasontakke78414 жыл бұрын
13:38 for (int j =0; j
@hritikgupta27953 жыл бұрын
Q-2 by recursive method class javaProgram { static void pattern2(int n){ if(n>0){ for(int I=0;i
@abhitesh3233 жыл бұрын
19:45 static int array(int... arr){ int sum= 0; int avg=0; for (int e:arr){ sum+=e; avg=(sum/(arr.length)); }return avg; } public static void main(String[] args) { System.out.println("avg of students is "+array(56,66,66,49,99));
@Sachinhooda446 ай бұрын
Avg ko float Lena tha bhai nahi to incorrect answer mil sakta hai Aur array and sum ko bhi float loge to float arguments bhi daal skte hai
// Question 6: static int sum (int... arr) { int result = 0; for (int e : arr) { result += e; } return result; } public static void main (String[]args){ int result = sum(55,453,576,553,52,67); System.out.println(result/6);
@shivanipaswan56573 жыл бұрын
Sry to say but ye result+= e ka logic samjh ni aaya ap explain kr sakte ho plz🙏
@akhandbharat48553 жыл бұрын
@@shivanipaswan5657 varargs ke video mai explain kiye hai bhaiya ne
@rakhibarnwal46122 жыл бұрын
13:34 public class pr_04 { static void pattern(int n){ for(int i = 0;i
@priyanshuborole82284 жыл бұрын
13:45 static void num(int n){ for (int i = 1;i=i;j--){ System.out.print("* "); } System.out.println(); } } public static void main(String[] args){ num(4); }
@kroorkartik3 жыл бұрын
J>=i+1 hoga vro
@MayureshDagale-sg6op14 күн бұрын
" Question number 8 " explanation is OP ❤❤❤ Also Harry Sir is OP
@pulkitgupta55503 жыл бұрын
@13:30 Harry bhai iske do answers ho sakte hain 1. agar hmara pehla for loop increment mein hai toh inner loop n-i times chalega 2. agar hmara pehla for loop decrement mein hai toh inner loop i times chalega
@Clarara-is9li9 ай бұрын
19:44 6th question public static void avg(int ...arr){ int sum=0; int res=0; for(int element:arr){ sum=sum+element; } res=sum/ arr.length; System.out.println(res); } public static void main(String[] args) { avg(99,98,97,96,99); }
@paragkaushik95953 жыл бұрын
13:44 //Problem 4 static void pattern2(int n){ for(int i=1; i
@karvapatel29982 жыл бұрын
bro can you please explain this logic
@pratikshaparalikar3001 Жыл бұрын
esne c++ kejaysa kiya hai
@infini7878 Жыл бұрын
@@pratikshaparalikar3001 j-- ayega
@sumanpan6667 Жыл бұрын
thanks ❤
@meghaagarwal3544 жыл бұрын
static void cel_fah(float c){ double result; result=(c*(9/5.0f))+32; System.out.println(result); } public static void main(String[] args){ cel_fah(52); Harry Bhai your tutorial is ReALLY awesome!
@harshithvellala25893 жыл бұрын
Program for question 6 static float avg(int...arr){ int sum = 0; for (int a:arr){ sum = sum +a; } float avg = sum/ arr.length; return avg; } public static void main(String[] args) { float avg = avg(1,5,10); System.out.println(avg); }
@anikajain76603 жыл бұрын
Thankyou
@vanshshrivastava58853 жыл бұрын
ty
@nandiniverma52733 жыл бұрын
thanks
@swapniludapure59263 жыл бұрын
Thanks ❤️
@dangergamimg19332 жыл бұрын
@@nandiniverma5273 . You look like sister of SoulRegaltos
@asifqureshi32733 жыл бұрын
Question-4 j < n-i
@sumitkaith66774 жыл бұрын
Recursion wale program smjh hi nhi aa rhe .... Uper se ja rhe h 😭😭
@yashsavaliya93343 жыл бұрын
me too
@vidyasagarsharma5225 Жыл бұрын
Same bro
@kalpanamadane8186 Жыл бұрын
Same here
@GAMINGWORLD-rg9uj Жыл бұрын
Same
@shivvratraghuvanshi522 Жыл бұрын
@@GAMINGWORLD-rg9uj same🥲
@abhitesh3233 жыл бұрын
13:00 static void pattern(int n){ for (int i=n;i>0;i--){ for (int j=0;j
@palakdhewal45813 жыл бұрын
19:41 @CodeWithHarry Answer to problem average static double average(int a[], int n) { // Find sum of array element int sum = 0; for (int i = 0; i < n; i++) sum += a[i]; return (double) sum / n; } public static void main (String[]args){ int arr[] = {10, 2, 3, 4, 5, 6}; int n = arr.length; System.out.println(average(arr, n)); } }
@ashoktiwari77052 ай бұрын
10 question's answer is==> static void repeat(int n){ int mt=1; for (int i=1;i
@Prakashkumar-if8sk3 жыл бұрын
28:32 static float temp (float n){ float a = n*1.8f + 32; return a; } public static void main (String [] args) { float x = temp(37); Sout(x) }
Thnq harry bhai recursion wali problem start m smjh nhi ayi but jab apki video multiple times dekhe smjh agya thnq for such great efforts❤
@carzydance1623 жыл бұрын
Problem 4: static void pattern2(int n){ for (int i=n; i>0; i--){ for (int j=1; j
@Banian.reactz Жыл бұрын
Thanks bhai
@PratikSingh-q8dАй бұрын
13:40 the star iteration will be from o to
@mohulchakraborty34823 жыл бұрын
6)static int average(int...array){ int a = 0; for (int i = 0; i < array.length; i++){ a = a + array[i]; } return a/3; } public static void main(String[] args) { System.out.println(average(2,4)); } }
@tusharnarang43344 жыл бұрын
Pattern2 using Recursion:- if(n>0){ for (int i=n-1;i>=0;i--){ System.out.print("*"+ " "); } System.out.println(); pattern2_rec(n-1); }
@hxrsh_x2 жыл бұрын
bhai app bhagwan ho, dhanyawad aapka
@pulkit81334 ай бұрын
// problem 6 static int sum(int ...arr){ int summ=0; for(int e:arr){ summ+=e; } return summ; }
@chetananijaguli31452 жыл бұрын
20:05 Find average of a set of numbers:- public class Varagrs { static float avg(float...arr) { float sum=0; float avg=0; for(float e:arr) { sum+=e; } avg=sum/arr.length ; return avg; } public static void main(String[] args) { System.out.println(avg(100,120,30)); System.out.println(avg(2,3,4)); } }
@deep15042 жыл бұрын
Q @4:48 public static void main(String[] args) { Scanner input = new Scanner(System.in); pattern(4); } public static void pattern(int n){ for (int i =0;i
@naveenkumarbalne99572 жыл бұрын
reverse star Pattern using Recursion static void star1(int n) { if (n > 0) { for (int i = n; 0 < i; i--) { System.out.print("* "); } System.out.println(" "); star1(n - 1); } } public static void main(String[] args) { star1(6); }
@theandroidtech012 жыл бұрын
Wrong
@badalsahoo3902 Жыл бұрын
Thanks bro ! 🎉, i understand , so i move the n-1 line after the call reserv .🆗
@KapilKumar-gf8eb2 жыл бұрын
static void pattern2(int n){ for (int a = 0; aa+1; b--){ System.out.print("*"); } System.out.println(); } } public static void main(String[] args) { pattern2(4); }
Did Question 3 with different approach:- static int sum(int n){ int sum = 0; for ( int i=0; i
@mohdsharif7384 жыл бұрын
Thanks you very much Please explain recursion in a separate video please
@pulkit81334 ай бұрын
// Problem 8 static void P2(int x){ if(x>0){ for(int i=0;i
@GrowwithVivek084 жыл бұрын
I know the expression for conversion of Celsius to fahreneit C/💯=F-32/180 ..
@AmaanKhan-nb4nr2 жыл бұрын
public class Main { static void printt(int n){ for(; n>=1; n--){ for(int j =1; j
@shivamchauhan13832 жыл бұрын
13: 30 public class S_CH7_04 { static void pattern2(int n){ for(int i=n;i>=1;i--){ for(int j=1;j
@lamborghini543 Жыл бұрын
Happy Teacher's Day "Harry Sir" .🎉🎉
@dnyaneshwarigund96162 жыл бұрын
29:25 // Write iterative function/Method to calculate sum of first n natural number import java.util.Scanner; public class QuestionTenthAnswer { static int SumNaturalNumIterative (int n) { int sum = 0; for (int i = 0; i
@patelparth38734 жыл бұрын
Sir, Your method of teaching with practical examples are best for learning .....it helps us very much ........... Lekin sir please aap thoda jaldi videos banao......because next video aane me jyada time lagta hai to previous video ke sath link Karne me taklif hoti hai..... Aur videos ke bich me gap pade to maja nahi aata...... So please aap Hamare liye continuously puri playlist complete kare esi request hai .....videos jaldi aa jate hai to sikhne ki link 🔗 🔗 bani raheti hai aur sikhne me aasani hoti hai....... Thank you 🤗
13:20 static void pattern2(int n){ for (int i = 0; i < n; i++) { for (int j = n; j > i; j--) { System.out.print("*"); } System.out.println(); } }
@nitinjagga28414 жыл бұрын
Solution To Problem 6- 19:50 static int average_finder(int ...arr){ int sum = 0; for (int num: arr) { sum = sum + num; } return sum/arr.length; } int result = average_finder(5, 4, 9); System.out.println(result);
@alekhbhainsa46904 жыл бұрын
Please replace int with float....as average is an floating num.
@natikadas7004 жыл бұрын
28:47 static float CtoF(float n){ return ((n * 9/5) + 32); } Method to convert °C to °F
@dildosti77693 жыл бұрын
thanks
@hemantsharma73355 ай бұрын
static void avg(int ...arr){ int c=arr.length; int sum=0; for(int e:arr){ sum += e; } float avg=sum/c; System.out.println("avrage is : "+avg+"%"); }
@somnath__mondal3 жыл бұрын
I can not code Question 4 using Recursion ! Please help me !
@tushardhomane13432 жыл бұрын
21:15 public class VarArgs { int max; int average(int... arr){ for (int i = 0;i