Part 3 | Swapping Problem And Control Statement | 3 Hour Coding Challenge

  Рет қаралды 146,210

Brototype Malayalam

Brototype Malayalam

Күн бұрын

Пікірлер: 372
@izzethjebinkalpurath-sx4gf
@izzethjebinkalpurath-sx4gf Жыл бұрын
trick 😀printf("a : %d and b : %d",a,b) at last a,b change to b,a
@sneakyx388
@sneakyx388 Жыл бұрын
Swaping without temp variable int a=10,b=20 Printf(enter two numbers); scanf(" %d %d ",&a &b); printf(a=%d , b=%d,b,a);
@jibinreji2767
@jibinreji2767 10 ай бұрын
It's working as variables declarations types.(taken data from user)
@abhiram_04
@abhiram_04 4 ай бұрын
Correct bro 👍
@tholhamubashir
@tholhamubashir 3 ай бұрын
Firstile printfum scanf ntim aaavshym illello , variable declare cheyynille?
@hamzamkmattathil9625
@hamzamkmattathil9625 3 ай бұрын
But avide swaping nadakkillallo.. Value of a and b remains same.. Not swaped.. This is only a printing trick.. The actual motive of this programe is relpace the value of a with b and b with a. Not to display as b a
@shamilmuhammad6705
@shamilmuhammad6705 3 ай бұрын
Nested if manasilayaaa
@Evikksszzzmoonu
@Evikksszzzmoonu 3 ай бұрын
Areelum undoo ipo thudagiyaa 🫣
@Black-q8n
@Black-q8n 2 ай бұрын
Njan und
@Evikksszzzmoonu
@Evikksszzzmoonu 2 ай бұрын
@@Black-q8n broo eth vara ayii
@Gamereactor-1k
@Gamereactor-1k 2 ай бұрын
Yeah
@ananthukrishna.v2092
@ananthukrishna.v2092 2 ай бұрын
Njan
@ananthukrishna.v2092
@ananthukrishna.v2092 2 ай бұрын
Njan
@ansondaniel11
@ansondaniel11 Жыл бұрын
Swapping without temp int a=10, b=20; printf("a:%d b:%d%", b, a); *its a simple trick😌
@basilmk6138
@basilmk6138 8 ай бұрын
This is good
@chillwithme6816
@chillwithme6816 6 ай бұрын
👍👍👍
@KrystoGamingYT
@KrystoGamingYT 2 ай бұрын
G
@MyCodingDiary
@MyCodingDiary Жыл бұрын
You are doing such an excellent job, keep up the great work!♥
@muhammadmubarack7428
@muhammadmubarack7428 Жыл бұрын
Swapping without temp simple step😉 #include int main() { int a=10,b=20; printf("a:%d b:%d",b,a); return 0; }
@Ronaldjoseph123
@Ronaldjoseph123 10 ай бұрын
Swaping without temp variable int a=10, b=20; printf("Before swap a=%d b=%d",a,b); a=a+b;//a=30 (10+20) b=a-b;//b=10 (30-20) a=a-b;//a=20 (30-10) printf(" After swap a=%d b=%d",a,b);
@jdesters
@jdesters 4 ай бұрын
You can actually swap 2 "integers" without a temp. 1. Let a and b 2. a = a+b 3. b = a-b 4. a = a-b Now b contains the value of a and a contains the value of b.. and its not like printing the value of a and b with printf where you are not actually swapping values but merely printing them in wrong order..
@yente-per-shamil
@yente-per-shamil 9 күн бұрын
ith koruchude simple enn thonnu error veraathe 😌 int a=10,b=20; a=b; printf("a=%d",a); a=10,b=20; b=a; printf("b=%d",b);
@badminton4life63
@badminton4life63 Жыл бұрын
Swapping without temp variable, use XOR operator. a=a^b;b=a^b;a=a^b;
@laizerpubg3890
@laizerpubg3890 11 ай бұрын
Mass da nee
@badminton4life63
@badminton4life63 11 ай бұрын
@@laizerpubg3890 thanks da
@muhammedajmal2158
@muhammedajmal2158 3 ай бұрын
Int num1,num2,num3; Printf(“enter three number”) Scanf(“%d%d%d”,&num1,&num2,&num3); If(num1>num2){ Printf(“greatest number is %d”,num1); } If(num3>num1){ Printf(“greatest number is %d,num3); } Else{ If(num3>num2){ Printf(“greatest number is %d”,num3); } } Return 0; }
@KrystoGamingYT
@KrystoGamingYT 2 ай бұрын
@subeesht1805
@subeesht1805 Ай бұрын
how you are going to print num2, if num2 is greatest number??
@subeesht1805
@subeesht1805 Ай бұрын
int num1,num2,num3; printf("enter three numbers "); scanf("%d%d%d",&num1,&num2,&num3); if(num1>num2) { printf("the largest number is:%d",num1); } if(num1>num3) { printf("the largest number is:%d",num1); } if(num2>num3) { printf("the largest number is:%d",num2); } else { printf("the largest number is :%d",num3); } return 0; }
@cobratateishere
@cobratateishere 7 ай бұрын
Swap 'a and b' to 'b and a' in the printf last 👍👍
@adhil.h9472
@adhil.h9472 2 ай бұрын
int a=10, b=20; printf("a:%d b:%d%", b, a); swappimg without tempp
@subeesht1805
@subeesht1805 Ай бұрын
Swaping value of variables with out temp. int main() { int a=1,b=2; printf("a:%d b:%d",b,a); return 0; }
@Jyothilekshmi-vm6fj
@Jyothilekshmi-vm6fj 5 ай бұрын
Int a,b; Printf("enter two numbers"); Scand("%d%d",&a,&b); Printf("a=%d,b=%d",b,a);
@shakkirafathima4193
@shakkirafathima4193 2 ай бұрын
18:49 Int a,b,c; Printf("enter 3 numbers"); Scanf("%d%d%d",&a&b&c); If(a>b,a>c);{ Printf("greater than %d",a); }If(b>a,b>c);{ Printf(" greater than%d",b); }If(c>a,c>b); Printf("greater than %d",c); }
@subeesht1805
@subeesht1805 Ай бұрын
I think this will work for finding greatest number from 3 numbers: int num1,num2,num3; printf("enter three numbers "); scanf("%d%d%d",&num1,&num2,&num3); if(num1>num2) { printf("the largest number is:%d",num1); } if(num1>num3) { printf("the largest number is:%d",num1); } if(num2>num3) { printf("the largest number is:%d",num2); } else { printf("the largest number is :%d",num3); } return 0; }
@muhammedrafi8937
@muhammedrafi8937 Жыл бұрын
Swapping without temporary variable int a,b; printf("Enter 2 numbers"); scanf("%d%d",&a,&b); printf("a=%d b=%d",b,a);
@shahlaac582
@shahlaac582 Жыл бұрын
👍🏻
@rasimmohammed2066
@rasimmohammed2066 11 ай бұрын
ethil variable users allyea kodukunath ...? avida number swap akunath developer inu allyea mansilakullu 🤔
@muhammedrafi8937
@muhammedrafi8937 11 ай бұрын
@@rasimmohammed2066 users just values മാത്രമാണ് കൊടുക്കുന്നത് variable അല്ലല്ലോ. Ath eth variable ലേക്ക് store ആകണം എന്ന് programmer അല്ലേ decide ചെയ്യുക.
@danielbovas8646
@danielbovas8646 6 ай бұрын
I was able to know the coding 's next steps even before you could show it ,because it's really helping me
@steveroger3914
@steveroger3914 11 ай бұрын
int main() { int a,b,c; printf("Enter 3 numbers"); scanf("%d%d%d",&a,&b,&c); if(a>b&a>c){ printf("greatest number is %d",a); } if(b>a&b>c){ printf("greatest number is %d",b); }if(c>a&c>b){ printf("greatest number is is %d",c); } return 0;
@Appu-qq7kt
@Appu-qq7kt 9 ай бұрын
Thanks bro❤
@sreenivassreenuzz2686
@sreenivassreenuzz2686 9 ай бұрын
If il a>b mathi angana 3 lines ezhuthiyal mathi & avashyam illa
@Vahidps
@Vahidps 6 ай бұрын
@DragonSevo
@DragonSevo 4 ай бұрын
Thanks bruh
@adithyan7209
@adithyan7209 4 ай бұрын
Bro ivide else illathe engana work aakunne
@sarang_cs
@sarang_cs 3 ай бұрын
int main() { Int a=40,b=90; printf("a:%d and b:%d",b,a); return 0; }
@parvathy-y7b
@parvathy-y7b Жыл бұрын
swapping without variables int a=100,b=200; printf("a=%d b=%d",b,a);
@DevipriyaTD-m1f
@DevipriyaTD-m1f Жыл бұрын
Swapping problem without using variable temp #include int main() { int a=10,b=20; printf("a:%d b:%d",b,a); return 0; }
@jamsheerjamshi8407
@jamsheerjamshi8407 Жыл бұрын
👍
@ragnaryt8451
@ragnaryt8451 Жыл бұрын
Wow🎉
@danielbovas8646
@danielbovas8646 6 ай бұрын
When you didn't put and represent sign I knew there will be an error ,at first i thought it's different way of doing it
@fathimazuhra7267
@fathimazuhra7267 Ай бұрын
int a=10,b=20; a=a+b; b=a-b; a=a-b; printf("a %d b %d",a,b);
@1AMHiM.
@1AMHiM. Ай бұрын
Run cheythappo a=20 b=20😢
@fathimazuhra7267
@fathimazuhra7267 Ай бұрын
@@1AMHiM. Cheydad onnude check cheyyu
@techyvlogyjins6054
@techyvlogyjins6054 7 ай бұрын
part3 completed
@StickDoodeAnimations
@StickDoodeAnimations 2 ай бұрын
Just printing position Maatiyal Madhi variablesinte.😊
@aravindrajm6727
@aravindrajm6727 Жыл бұрын
Swapping without variable int a,b; printf("enter 2 number"); scanf(*%d%d" , a, &b). printf("a%db%d" ,a,b) ; scanf("a-%d,b*); scanf ("b-%d, a"); printf("result :a% b%d" ,b,a);
@Noshin_Vk
@Noshin_Vk 10 ай бұрын
int a,b; printf("enter 2 number"); scanf("%d%d",&a,&b); printf("a%d b%d. ",a,b); scanf("a- %d",&b); scanf ("b- %d",&a); printf("result :a%d b%d",b,a); return 0;
@girigokul-w4x
@girigokul-w4x 4 ай бұрын
swappng wthout temp varable= int a=70,b=56; printf("a=%d b=%d",b,a);
@althafali9744
@althafali9744 Ай бұрын
In the if else case, what about zero? Actually, zero is not negative nor positive in mathematics
@BrototypeMalayalam
@BrototypeMalayalam Ай бұрын
Join our Telegram group, our team will help you. Join here :brototype.com
@vishnuhm8663
@vishnuhm8663 Жыл бұрын
printf("a:%d b:%d",b,a); for swaping without temp
@Fayis005
@Fayis005 2 ай бұрын
int a=10,b=20; a=a+b; b=a-b; a=a-b; printf("a :%d b :%d",a,b);
@coorgvalue4627
@coorgvalue4627 9 ай бұрын
#include int main() { int a = 10, b = 20; printf("Before swapping: a = %d, b = %d ", a, b); // Swapping without a third variable a = a + b; b = a - b; a = a - b; printf("After swapping: a = %d, b = %d ", a, b); }
@As3-2024
@As3-2024 11 ай бұрын
int main() { int num1,num2,num3; printf("enter any 3 numbers"); scanf("%d%d%d",&num1,&num2,&num3); if(num1>num2) if(num1>num3){ printf("the greater number is :%d",num1); } if(num2>num1) if(num2>num3){ printf("the greater number is :%d",num2); } if(num3>num1) if(num3>num2){ printf("the greater number is :%d",num3); } return 0; }
@seu8867
@seu8867 Жыл бұрын
18:21 //Nested if #include int main() { int num1,num2,num3; printf("Enter 3 nums"); scanf("%d%d%d",&num1,&num2,&num3); if(num1>num2 && num1>num3){ printf("Greatest num is: %d",num1); } else if(num2>num3){ printf("Greatest num is: %d",num2); } else{ printf("Greatest num is: %d",num3); } return 0; }
@muhammadsinan3074
@muhammadsinan3074 Жыл бұрын
Ith nested if allalo
@raheezzz9056
@raheezzz9056 4 ай бұрын
Thks
@fasilzpv
@fasilzpv 2 ай бұрын
@5:41 Fount the trick... int a=10,b=25; printf("a:%d b:%d",b,a); ✌
@ajithnp8340
@ajithnp8340 10 ай бұрын
Swapping without temp variable int a=10,b=20; a==b; printf("a:%d b:%d",b,a); return 0;
@sherisherin5391
@sherisherin5391 3 ай бұрын
Int a=20,b=30; printf("a:%d b:%d",a,b); Run🎉
@mrperfect9881
@mrperfect9881 4 ай бұрын
Swap Without Two Variables A=A+B B = A-B A= A-B
@explorer_mallu
@explorer_mallu 2 ай бұрын
18:00 int main() { int a,b,c; printf("enter 3 numbers"); scanf("%d%d%d",&a,&b,&c); if(a>b){ if(a>c) printf("greatest number is%d",a);} else{ printf("greatest number is %d",c); } return 0;
@adwaidpola286
@adwaidpola286 Жыл бұрын
Swaping without temp variable ----------------------------------------------- #include int main() { int a=10, b=20; a=a+b; b=a-b; a=a-b; printf("After swap a=%d and b=%d ",a, b) ; return 0; }
@_Jessin
@_Jessin 4 ай бұрын
DAY 2
@akhilrajan5440
@akhilrajan5440 Жыл бұрын
swaping without temp int a,b ; printf("enter a"); scanf("%d",&a); printf("enter b"); scanf("%d",&b); printf("a=%d ,b=%d",b,a);
@rajeswariradhakrishnanpadm9096
@rajeswariradhakrishnanpadm9096 Жыл бұрын
Coding Screen #include int main() { int a,b; printf("A="); scanf("%d", &a); printf("B="); scanf("%d", &b); a=a+b; b=a-b; a=a-b; printf("Swapped Values are A=%d B=%d", a,b); return 0; } Console O/P A=10 B=20 Swapped Values are A=20 B=10 Thankyou so much... This is the first time I am programming..
@fidha6495
@fidha6495 5 ай бұрын
Nested if Int num 1,num2,num3; Printf("enter 3 numbers"); Scanf("%d%d%d", &num1,&num2,&num3); If(num1>num2) If(num2>num3){ Printf("greatest number is %d", num1); Printf("greatest number is %d", num2); Printf("greatest number is %d", num3); }
@AllRounder-ov2cn
@AllRounder-ov2cn 5 ай бұрын
Engane cheyyumboo 3 answerum kanikkan👀👀
@samsheersamshi9930
@samsheersamshi9930 Жыл бұрын
int main() { int a,b,c; printf("enter 3 numbers"); scanf("%d%d%d",&a,&b,&c); if(ac){ printf("greatest is %d",b); }else{ printf("greatest is %d",c); } return 0; }
@hilallive
@hilallive Жыл бұрын
int main() { int num1,num2,num3; printf("enter 3 numbers"); scanf("%d%d%d",&num1,&num2,&num3); if(num1>num2) if(num2>num3){ printf("greatest number is %d", num1); }else{ printf("greatest number is %d",num2); } if(num1
@chugiyan5184
@chugiyan5184 10 ай бұрын
​@@hilalliveAvasanathe variyil num 2 aanu varune?
@muhammedfahim5927
@muhammedfahim5927 10 ай бұрын
17:29 nested if
@bahacomputer4902
@bahacomputer4902 8 ай бұрын
swapping without temp int a=10,b=20; a==b; b==a; printf("a:%d b:%d",b,a);
@anseena.k.p959
@anseena.k.p959 11 ай бұрын
int a=10,b=20; Print f(“a=%d b=%d”,b,a);
@shamnass9407
@shamnass9407 Жыл бұрын
+2 computer science padichitu oru karyam polum manassilayitilla but this class 😌😌😌
@BrototypeMalayalam
@BrototypeMalayalam Жыл бұрын
No,calicut varu . purath ninn padikkaan budhimutaanel brocamp remote option available aan .for more details connect to our team 7034395811 or instagram.com/brototype.malayalam
@Real_human_12
@Real_human_12 11 ай бұрын
nested if #include int main() { int num1,num2,num3; printf("enter 3 numbers"); scanf("%d%d%d",&num1,&num2,&num3); if(num1>num2) if(num1>num3){printf("%d is greater",num1); }if(num2>num3){printf("%dis greater",num2);} else{printf("%d is greater",num3);} return 0; }
@aswinu1779
@aswinu1779 11 ай бұрын
2 if angane orumich vannal kittuoo🤔
@BronzeFury-YT
@BronzeFury-YT 9 ай бұрын
nested if int num1,num2,num3; printf("enter 3 numbers); Scanf("%d%d%d",&num1,&num2,&num3); if(num1>num2){ Printf("greatest number is %d",num1); }if(num2>num3){ Printf("greatest number is %d, num2); }if(num3>num1){ Printf("greatest number is %d,num3); }
@BrototypeMalayalam
@BrototypeMalayalam 9 ай бұрын
Do Join the Learning Club, our tech support will help you. Join here: brototype.com/3h/?ref=ytdescription
@MastertheOGway
@MastertheOGway 3 ай бұрын
Trick :D Int a=5,b=1; a=5-4; b=1+4; print("a:%d b:%d", a, b) ;
@keerthanaminnu4052
@keerthanaminnu4052 5 ай бұрын
Can you please help me in solving nested if. I got stuck with else
@BrototypeMalayalam
@BrototypeMalayalam 5 ай бұрын
Join our Telegram group, our team will help you. join here brototype.com
@kvupayyanad6843
@kvupayyanad6843 Жыл бұрын
int a=10,b=20,temp; temp=a; a=b; b=temp; printf("a:%d b:%d,",a,b)
@kvupayyanad6843
@kvupayyanad6843 Жыл бұрын
int num; printf("Enter a number"); scanf("%d", &num); if(num
@kvupayyanad6843
@kvupayyanad6843 Жыл бұрын
int num1,num2; printf("Enter 2 numbers"); scanf("%d %d", &num1,&num2); if(num1>num2){ printf("Greatest number is %d", num1); }else{ printf("Greatest number is %d",num2); }
@fathimasulthana9963
@fathimasulthana9963 Жыл бұрын
swapping without temple sample int main() { int a=10, b=20; printf("a: %d, b: %d',b,a); return 0; }
@sayoojc2573
@sayoojc2573 Жыл бұрын
smart work
@chincyvs2606
@chincyvs2606 Жыл бұрын
#include int main() { int a=10,b=20; a=b; b=a-10; printf("a :%d b :%d",a,b); return 0; }
@stumehere
@stumehere Жыл бұрын
nested if int num1,num2,num3; printf("enter 3 numbers"); scanf("%d%d%d",&num1,&num2,&num3); if(num1>num2){ if(num1>num3) printf("%d will greater",num1); } if(num2>num1){ if(num2>num3) printf("%d will greater",num2); } if(num3>num1){ if(num3>num2) printf("%d will greater",num3); }
@cobratateishere
@cobratateishere 7 ай бұрын
IDH YN CHERDHAKKAAN PATOOLE, WHY THIS MUCH LENGTHY?
@Vahidps
@Vahidps 6 ай бұрын
👍
@vijayarajvijay7486
@vijayarajvijay7486 5 ай бұрын
Ivide else inte avashyam ille
@mubarackpi5775
@mubarackpi5775 Жыл бұрын
Swapping without variable int a=10,b=20; printf("a :%d b:%d",b,a);
@hadhi0564
@hadhi0564 Жыл бұрын
int main() { int num1,num2,num3; printf("enter 3 number"); scanf("%d%d%d",&num1,&num2,&num3); if(num1>num2 & num1>num2){ printf("greatest number is %d",num1); }else if (num2>num1 & num2>num3){ printf("greatest number is %d",num2); }else{ printf("greatest number is %d",num3); } return 0; }
@fasalcm5683
@fasalcm5683 Жыл бұрын
a=b b=b/2
@aminibnuharoon
@aminibnuharoon Жыл бұрын
aadyathathil ninnum temp motham maatuka ennit b=temp ennath b=a ennakukka thats all easy work
@musthafamuthu3924
@musthafamuthu3924 Жыл бұрын
Swapping without temp sample Int a=10, b=20; a=a+b; b=a-b; a=a-b; P("a:20,b:10",a, b);
@binjii
@binjii Жыл бұрын
Wow👀
@B2Craft
@B2Craft Жыл бұрын
👍🏻
@leo-bb7sr
@leo-bb7sr Жыл бұрын
Bro p endva
@shibu476
@shibu476 Жыл бұрын
🔥🔥🔥
@shibu476
@shibu476 Жыл бұрын
​@@leo-bb7srprintf
@aromalsajeev5334
@aromalsajeev5334 Жыл бұрын
int main() { int num1,num2,num3; printf("enter 3 numbers"); scanf("%d%d%d",&num1,&num2,&num3); if(num1num3){ printf("greatest is %d",num1); }else{ printf("greatest is %d",num2); } return 0; }
@AjalKVarghese
@AjalKVarghese 11 ай бұрын
#include int main() { int a=10,b=20; a=a+b; b=a-b; a=a-b; printf("a:%d,b:%d",a,b); return 0; }
@FlyingnRafi
@FlyingnRafi 7 ай бұрын
👍👍
@bijinvgopal5118
@bijinvgopal5118 Жыл бұрын
#include int main() { int a=200,b=500; a=a+b; b=a-b; a=a-b; printf("a : %d b :%d",a,b); return 0; }
@shahinamubarak7844
@shahinamubarak7844 5 ай бұрын
a=10, b=20 b=a+b-b a=a+b-a a=a+a Now a=20 b=10
@sanjaybalachandran1756
@sanjaybalachandran1756 2 ай бұрын
greater number kandethan 3 numbers vech cheyyumbol 3 variables koodathe 1 variable koode use cheyyande? total 4 variables vende?
@BrototypeMalayalam
@BrototypeMalayalam 2 ай бұрын
Join our Telegram group, our team will help you. Join here :brototype.com
@All_In_One-t6y
@All_In_One-t6y Жыл бұрын
Int a=10,b=20; a=a; b=b; printf("a :%d b :%d", b, a); return 0; Console a :20 b:10
@joelmprakash8349
@joelmprakash8349 9 ай бұрын
int main() { int n1, n2, n3; printf("Enter the 3 numbers "); scanf("%d %d %d", &n1, &n2, &n3); if (n1>n2 & n1>n3) { printf("%d is greater", n1); }else if (n2>n1 & n2>n3) { printf("%d is greater", n2); }else { printf("%d is greater", n3); } return 0; }
@Unfamiliar007
@Unfamiliar007 8 ай бұрын
int main() { int num1, num2, num3; printf("enter any number"); scanf("%d%d%d", &num1, &num2, &num3); if(num1>num2){ printf("greatest number is %d", num1); if(num2>num1) printf("greatest number is %d", num2); }else{ printf("greatest number is %d", num3); } return 0; }
@jerinjohn0073
@jerinjohn0073 9 ай бұрын
int main() { int n1,n2,n3; printf("enter 3 number "); scanf("%d%d%d",&n1,&n2,&n3); if(n1>n2){ printf("result is %d",n1); }else if (n2>n3){ printf("result is %d",n2); }else if(n3>n1){ printf("result is %d",n3); } return 0; }
@eldhosetips
@eldhosetips 4 ай бұрын
int main() {int a=30,b=10; printf("a :%d b:%d",b,a); return 0; }
@sarangkv9809
@sarangkv9809 Жыл бұрын
Swapping without temp Int a,b Printf ("enter 2 number"); Scanf("%d%d",&a,&b); Printf("a:%d b:%d",b,a);
@ADI-kf9wi
@ADI-kf9wi 10 ай бұрын
int a,b ; printf("enter a and b"); scanf("%d%d",&a,&b); printf("a=%d,b=%d",b,a);
@Amruthesh2005
@Amruthesh2005 2 ай бұрын
int main() { int num1,num2,num3; printf("Enter 3 numbers"); scanf("%d%d%d",&num1,&num2,&num3); if (num1>num2){ if(num1>num3) printf("Greatest number is : %d",num1); else printf("Greatest number is : %d",num3); }else{ if(num2>num3) printf("Greatest number is : %d",num2); else printf("Greatest number is : %d",num3); } return 0; }
@sumeshs5454
@sumeshs5454 Жыл бұрын
Swapping problem without using temp a=b b=a
@Nafiouoop
@Nafiouoop Жыл бұрын
int main () { int num1,num2,num3; printf("enter 3 numbers"); scanf("%d%d%d" ,&num1,&num2,&num3); if(num1>num2 && num1>num3){ printf("greatest number is %d" ,num1); }else if(num2>num3 && num2>num1){ printf("greatest number is %d" ,num2); }else if(num3>num1 && num3>num2){ printf("greatest number is %d" ,num3); } return 0; }
@ashique292
@ashique292 10 ай бұрын
int a=10,b=20; Printf("a:%d b:%d",b,a); Return 0; I got answer a=20& b=10. Without temp
@aryadevm3521
@aryadevm3521 Жыл бұрын
int main() { int a=10,b=20; b=a; a=20; printf("a:%d b:%d" ,a,b); return 0; }
@shafnaarees8808
@shafnaarees8808 Жыл бұрын
Chatgpt namukk ellaam code cheyd tharunnundallo then y v r studying this
@akhilpa9720
@akhilpa9720 Жыл бұрын
Swapping without temp sample #include int main() { Int a=10,b=20,c=30; a=b; b=c; c=a; printf("a:%d b:%d c:%d", a, b, c); return 0; }
@abstriga6029
@abstriga6029 Жыл бұрын
No
@abstriga6029
@abstriga6029 Жыл бұрын
Ith a:20 b:30 c:20
@ghanashyamgovind4067
@ghanashyamgovind4067 3 ай бұрын
int num1,num2,num3; printf("enter 3 numbers :"); scanf("%d%d%d",&num1,&num2,&num3); if(num1>num2){ if(num1>num3){ printf("greatest number is %d",num1); }else{ printf("greatest number is %d",num3); } }else{ if(num2>num3){ printf("greatest number is %d",num2); }else { printf("greatest number is %d",num3); } }
@arun_km_9027
@arun_km_9027 11 ай бұрын
int num1,num2,num3; printf("Enter 3 number"); scanf("%d%d%d",&num1,&num2,&num3); if(num1>num2){ printf("greatest is %d",num1); if(num3>num1){ printf("greatest is %d",num3); } }else{ if(num3>num2){ printf("greatest is %d",num3); }else{ printf("greatest is %d",num2); } } enganee type cheyunatha poreee
@rakeshpr2851
@rakeshpr2851 4 ай бұрын
Trick = printf("a : %d, b : %d",b,a)
@galaxy2073
@galaxy2073 Ай бұрын
12:55
@mikeyO718
@mikeyO718 6 ай бұрын
int main() { int num1,num2,num3; printf("enter 3 numbers"); scanf("%d%d%d",&num1,&num2,&num3); if(num1>num2){ printf("greatest number is %d", num1); }else if(num3>num1){ printf("greatest number is %d",num3); }else{ printf("greatest number is %d",num2); } return 0; }
@greenvillagechannel
@greenvillagechannel 11 ай бұрын
swaping wihout temp variable #include int main() { int a=1,b=2; a=a+b; b=a-b; a=a-b; printf("a:%d b:%d",a,b); return 0; }
@thinkbeyond2288
@thinkbeyond2288 6 ай бұрын
Compare 3 numbers int main() { int number1,number2,number3; printf("Enter 3 numbers"); scanf("%d%d%d",&number1,&number2,&number3); if (number1>number2){ if (number3>number1){ printf("%d is the greatest", number3); }else{ printf("%d is the greatest", number1); }}else{ if (number3>number2){ printf("%d is the greatest", number3); }else{ printf("%d is the greatest", number2); }} return 0; }
@abhinandvengassery3722
@abhinandvengassery3722 Жыл бұрын
int main() { int a=20,b=30 ; printf("a :%d",b); printf("b :%d",a); return 0; }
@gamylaw
@gamylaw Жыл бұрын
nested if ,ath swanthamyi cheythu but 2 pravishyam greater is ,greater is enn paranj greater num kaanikkunnu
@BrototypeMalayalam
@BrototypeMalayalam Жыл бұрын
Join the Learning Club, our tech support will help you. Join here: brototype.com/learningclub/org/fullstack/?ref=ytdescription
@adilaahamed960
@adilaahamed960 5 ай бұрын
I’m trying to do “else if ladder”….but don’t know what is happening… I cannot do it …. Anyone pls help me
@BrototypeMalayalam
@BrototypeMalayalam 5 ай бұрын
Join our Telegram group, our team will help you. Join here :brototype.com
@adilaahamed960
@adilaahamed960 5 ай бұрын
Ok… thanks for ur reply.
@athiraathira-l7g
@athiraathira-l7g Жыл бұрын
#include int main() { float a,b; printf("enter the numbers for a nd b"); scanf("%f%f",&a,&b); printf("after swapping a=%f and b=%f",b,a); return 0; }
@asiftechy6927
@asiftechy6927 8 ай бұрын
Sir nested if doubt ind paranj tharo
@BrototypeMalayalam
@BrototypeMalayalam 8 ай бұрын
Surely, Learning club join ചെയ്യു. Tech support team നിങ്ങളെ help ച്ചയും. Register at brototype.com/learningclub/org/fullstack/100k/?ref=youtube_malayalam_comments
@zeimorc
@zeimorc 3 ай бұрын
nested if int num1,num2,num3; printf("enter 3 numbers"); scanf("%d%d%d",&num1,&num2,&num3); if(num1>num2){ if(num1>num3) printf("%d will greater",num1); } if(num2>num1){ if(num2>num3) printf("%d will greater",num2); } if(num3>num1){ if(num3>num2) printf("%d will greater",num3); } return 0; } isn't correct
@__adhithyan
@__adhithyan Жыл бұрын
{ int a,b; printf("enter the value for a and b "); scanf("%d%d",&a,&b); printf("the value of a=%d and b=%d ",a,b); a=a+b; b=a-b; a=a-b; printf("a=%d,b=%d",a,b); }
@fowmilaj1976
@fowmilaj1976 9 ай бұрын
a=a+b b=a-b a=a-b
@Prakashkrishnannkp
@Prakashkrishnannkp 9 ай бұрын
nested if- int num1,num2,num3; printf(" Enter Three different Numbers : "); scanf("%d%d%d",&num1,&num2,&num3); if(num1>num2){ if(num1>num3){ printf("%d is greatest number ",num1); }else{ printf("%d is greatest number ",num3); } }else if(num2>num1){ if(num2>num3){ printf("%d is greatest number ",num2); }else{ printf("%d is greatest number ",num3); } }else{ printf("%d is greatest number ",num1);
@BrototypeMalayalam
@BrototypeMalayalam 9 ай бұрын
3 hour telegram Join the Learning Club, our tech support will help you. Join here: brototype.com/3h/?ref=ytdescription
@hilallive
@hilallive Жыл бұрын
int main() { int num1,num2,num3; printf("enter 3 numbers"); scanf("%d%d%d",&num1,&num2,&num3); if(num1>num2) if(num2>num3){ printf("greatest number is %d", num1); }else{ printf("greatest number is %d",num2); } if(num1
@hilallive
@hilallive Жыл бұрын
sry, this is wrong.
@hilallive
@hilallive Жыл бұрын
int main() { int num1,num2,num3; printf("enter 3 numbers"); scanf("%d%d%d",&num1,&num2,&num3); if(num1>=num2 && num1>=num3) { printf("greatest number is %d", num1); }else if (num2 >= num1 && num2 >= num3) { printf("greatest number is %d",num2); }else{ printf("greatest number is %d", num3); } return 0; }
Part 4 | Continuation Of Control Statement | 3 Hour Coding Challenge
32:17
Brototype Malayalam
Рет қаралды 102 М.
From a ₹5,500 monthly salary job to a software engineer..!
36:55
Brototype Malayalam
Рет қаралды 32 М.
小丑家的感情危机!#小丑#天使#家庭
00:15
家庭搞笑日记
Рет қаралды 38 МЛН
ROSÉ & Bruno Mars - APT. (Official Music Video)
02:54
ROSÉ
Рет қаралды 175 МЛН
How I Turned a Lolipop Into A New One 🤯🍭
00:19
Wian
Рет қаралды 13 МЛН
Part 1 | Introduction To Programming | 3-Hour Coding Challenge
30:46
Brototype Malayalam
Рет қаралды 422 М.
Part 2 | Arithmetic Operations And Sample Input | 3 Hour Coding Challenge
33:05
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40
A warning to our haters!
34:37
Brototype Malayalam
Рет қаралды 82 М.