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
@shamilmuhammad67053 ай бұрын
Nested if manasilayaaa
@Evikksszzzmoonu3 ай бұрын
Areelum undoo ipo thudagiyaa 🫣
@Black-q8n2 ай бұрын
Njan und
@Evikksszzzmoonu2 ай бұрын
@@Black-q8n broo eth vara ayii
@Gamereactor-1k2 ай бұрын
Yeah
@ananthukrishna.v20922 ай бұрын
Njan
@ananthukrishna.v20922 ай бұрын
Njan
@ansondaniel11 Жыл бұрын
Swapping without temp int a=10, b=20; printf("a:%d b:%d%", b, a); *its a simple trick😌
@basilmk61388 ай бұрын
This is good
@chillwithme68166 ай бұрын
👍👍👍
@KrystoGamingYT2 ай бұрын
G
@MyCodingDiary Жыл бұрын
You are doing such an excellent job, keep up the great work!♥
@muhammadmubarack7428 Жыл бұрын
Swapping without temp simple step😉 #include int main() { int a=10,b=20; printf("a:%d b:%d",b,a); return 0; }
@Ronaldjoseph12310 ай бұрын
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);
@jdesters4 ай бұрын
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-shamil9 күн бұрын
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 Жыл бұрын
Swapping without temp variable, use XOR operator. a=a^b;b=a^b;a=a^b;
@laizerpubg389011 ай бұрын
Mass da nee
@badminton4life6311 ай бұрын
@@laizerpubg3890 thanks da
@muhammedajmal21583 ай бұрын
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; }
@KrystoGamingYT2 ай бұрын
❤
@subeesht1805Ай бұрын
how you are going to print num2, if num2 is greatest number??
@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; }
@cobratateishere7 ай бұрын
Swap 'a and b' to 'b and a' in the printf last 👍👍
@adhil.h94722 ай бұрын
int a=10, b=20; printf("a:%d b:%d%", b, a); swappimg without tempp
@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-vm6fj5 ай бұрын
Int a,b; Printf("enter two numbers"); Scand("%d%d",&a,&b); Printf("a=%d,b=%d",b,a);
@shakkirafathima41932 ай бұрын
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Ай бұрын
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 Жыл бұрын
Swapping without temporary variable int a,b; printf("Enter 2 numbers"); scanf("%d%d",&a,&b); printf("a=%d b=%d",b,a);
@@rasimmohammed2066 users just values മാത്രമാണ് കൊടുക്കുന്നത് variable അല്ലല്ലോ. Ath eth variable ലേക്ക് store ആകണം എന്ന് programmer അല്ലേ decide ചെയ്യുക.
@danielbovas86466 ай бұрын
I was able to know the coding 's next steps even before you could show it ,because it's really helping me
@steveroger391411 ай бұрын
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-qq7kt9 ай бұрын
Thanks bro❤
@sreenivassreenuzz26869 ай бұрын
If il a>b mathi angana 3 lines ezhuthiyal mathi & avashyam illa
@Vahidps6 ай бұрын
❤
@DragonSevo4 ай бұрын
Thanks bruh
@adithyan72094 ай бұрын
Bro ivide else illathe engana work aakunne
@sarang_cs3 ай бұрын
int main() { Int a=40,b=90; printf("a:%d and b:%d",b,a); return 0; }
@parvathy-y7b Жыл бұрын
swapping without variables int a=100,b=200; printf("a=%d b=%d",b,a);
@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 Жыл бұрын
👍
@ragnaryt8451 Жыл бұрын
Wow🎉
@danielbovas86466 ай бұрын
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Ай бұрын
int a=10,b=20; a=a+b; b=a-b; a=a-b; printf("a %d b %d",a,b);
@1AMHiM.Ай бұрын
Run cheythappo a=20 b=20😢
@fathimazuhra7267Ай бұрын
@@1AMHiM. Cheydad onnude check cheyyu
@techyvlogyjins60547 ай бұрын
part3 completed
@StickDoodeAnimations2 ай бұрын
Just printing position Maatiyal Madhi variablesinte.😊
@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);
swappng wthout temp varable= int a=70,b=56; printf("a=%d b=%d",b,a);
@althafali9744Ай бұрын
In the if else case, what about zero? Actually, zero is not negative nor positive in mathematics
@BrototypeMalayalamАй бұрын
Join our Telegram group, our team will help you. Join here :brototype.com
@vishnuhm8663 Жыл бұрын
printf("a:%d b:%d",b,a); for swaping without temp
@Fayis0052 ай бұрын
int a=10,b=20; a=a+b; b=a-b; a=a-b; printf("a :%d b :%d",a,b);
@coorgvalue46279 ай бұрын
#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-202411 ай бұрын
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 Жыл бұрын
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 Жыл бұрын
Ith nested if allalo
@raheezzz90564 ай бұрын
Thks
@fasilzpv2 ай бұрын
@5:41 Fount the trick... int a=10,b=25; printf("a:%d b:%d",b,a); ✌
@ajithnp834010 ай бұрын
Swapping without temp variable int a=10,b=20; a==b; printf("a:%d b:%d",b,a); return 0;
@sherisherin53913 ай бұрын
Int a=20,b=30; printf("a:%d b:%d",a,b); Run🎉
@mrperfect98814 ай бұрын
Swap Without Two Variables A=A+B B = A-B A= A-B
@explorer_mallu2 ай бұрын
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 Жыл бұрын
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; }
@_Jessin4 ай бұрын
DAY 2
@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 Жыл бұрын
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..
@fidha64955 ай бұрын
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-ov2cn5 ай бұрын
Engane cheyyumboo 3 answerum kanikkan👀👀
@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 Жыл бұрын
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
@chugiyan518410 ай бұрын
@@hilalliveAvasanathe variyil num 2 aanu varune?
@muhammedfahim592710 ай бұрын
17:29 nested if
@bahacomputer49028 ай бұрын
swapping without temp int a=10,b=20; a==b; b==a; printf("a:%d b:%d",b,a);
@anseena.k.p95911 ай бұрын
int a=10,b=20; Print f(“a=%d b=%d”,b,a);
@shamnass9407 Жыл бұрын
+2 computer science padichitu oru karyam polum manassilayitilla but this class 😌😌😌
@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_1211 ай бұрын
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; }
@aswinu177911 ай бұрын
2 if angane orumich vannal kittuoo🤔
@BronzeFury-YT9 ай бұрын
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); }
@BrototypeMalayalam9 ай бұрын
Do Join the Learning Club, our tech support will help you. Join here: brototype.com/3h/?ref=ytdescription
@MastertheOGway3 ай бұрын
Trick :D Int a=5,b=1; a=5-4; b=1+4; print("a:%d b:%d", a, b) ;
@keerthanaminnu40525 ай бұрын
Can you please help me in solving nested if. I got stuck with else
@BrototypeMalayalam5 ай бұрын
Join our Telegram group, our team will help you. join here brototype.com
@kvupayyanad6843 Жыл бұрын
int a=10,b=20,temp; temp=a; a=b; b=temp; printf("a:%d b:%d,",a,b)
@kvupayyanad6843 Жыл бұрын
int num; printf("Enter a number"); scanf("%d", &num); if(num
@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 Жыл бұрын
swapping without temple sample int main() { int a=10, b=20; printf("a: %d, b: %d',b,a); return 0; }
@sayoojc2573 Жыл бұрын
smart work
@chincyvs2606 Жыл бұрын
#include int main() { int a=10,b=20; a=b; b=a-10; printf("a :%d b :%d",a,b); return 0; }
@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); }
@cobratateishere7 ай бұрын
IDH YN CHERDHAKKAAN PATOOLE, WHY THIS MUCH LENGTHY?
@Vahidps6 ай бұрын
👍
@vijayarajvijay74865 ай бұрын
Ivide else inte avashyam ille
@mubarackpi5775 Жыл бұрын
Swapping without variable int a=10,b=20; printf("a :%d b:%d",b,a);
@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 Жыл бұрын
a=b b=b/2
@aminibnuharoon Жыл бұрын
aadyathathil ninnum temp motham maatuka ennit b=temp ennath b=a ennakukka thats all easy work
@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 Жыл бұрын
Wow👀
@B2Craft Жыл бұрын
👍🏻
@leo-bb7sr Жыл бұрын
Bro p endva
@shibu476 Жыл бұрын
🔥🔥🔥
@shibu476 Жыл бұрын
@@leo-bb7srprintf
@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; }
@AjalKVarghese11 ай бұрын
#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; }
@FlyingnRafi7 ай бұрын
👍👍
@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; }
@shahinamubarak78445 ай бұрын
a=10, b=20 b=a+b-b a=a+b-a a=a+a Now a=20 b=10
@sanjaybalachandran17562 ай бұрын
greater number kandethan 3 numbers vech cheyyumbol 3 variables koodathe 1 variable koode use cheyyande? total 4 variables vende?
@BrototypeMalayalam2 ай бұрын
Join our Telegram group, our team will help you. Join here :brototype.com
@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
@joelmprakash83499 ай бұрын
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; }
@Unfamiliar0078 ай бұрын
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; }
@jerinjohn00739 ай бұрын
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; }
@eldhosetips4 ай бұрын
int main() {int a=30,b=10; printf("a :%d b:%d",b,a); return 0; }
@sarangkv9809 Жыл бұрын
Swapping without temp Int a,b Printf ("enter 2 number"); Scanf("%d%d",&a,&b); Printf("a:%d b:%d",b,a);
@ADI-kf9wi10 ай бұрын
int a,b ; printf("enter a and b"); scanf("%d%d",&a,&b); printf("a=%d,b=%d",b,a);
@Amruthesh20052 ай бұрын
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 Жыл бұрын
Swapping problem without using temp a=b b=a
@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; }
@ashique29210 ай бұрын
int a=10,b=20; Printf("a:%d b:%d",b,a); Return 0; I got answer a=20& b=10. Without temp
@aryadevm3521 Жыл бұрын
int main() { int a=10,b=20; b=a; a=20; printf("a:%d b:%d" ,a,b); return 0; }
@shafnaarees8808 Жыл бұрын
Chatgpt namukk ellaam code cheyd tharunnundallo then y v r studying this
@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 Жыл бұрын
No
@abstriga6029 Жыл бұрын
Ith a:20 b:30 c:20
@ghanashyamgovind40673 ай бұрын
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_902711 ай бұрын
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
@rakeshpr28514 ай бұрын
Trick = printf("a : %d, b : %d",b,a)
@galaxy2073Ай бұрын
12:55
@mikeyO7186 ай бұрын
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; }
@greenvillagechannel11 ай бұрын
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; }
@thinkbeyond22886 ай бұрын
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 Жыл бұрын
int main() { int a=20,b=30 ; printf("a :%d",b); printf("b :%d",a); return 0; }
@gamylaw Жыл бұрын
nested if ,ath swanthamyi cheythu but 2 pravishyam greater is ,greater is enn paranj greater num kaanikkunnu
@BrototypeMalayalam Жыл бұрын
Join the Learning Club, our tech support will help you. Join here: brototype.com/learningclub/org/fullstack/?ref=ytdescription
@adilaahamed9605 ай бұрын
I’m trying to do “else if ladder”….but don’t know what is happening… I cannot do it …. Anyone pls help me
@BrototypeMalayalam5 ай бұрын
Join our Telegram group, our team will help you. Join here :brototype.com
@adilaahamed9605 ай бұрын
Ok… thanks for ur reply.
@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; }
@asiftechy69278 ай бұрын
Sir nested if doubt ind paranj tharo
@BrototypeMalayalam8 ай бұрын
Surely, Learning club join ചെയ്യു. Tech support team നിങ്ങളെ help ച്ചയും. Register at brototype.com/learningclub/org/fullstack/100k/?ref=youtube_malayalam_comments
@zeimorc3 ай бұрын
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 Жыл бұрын
{ 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); }
@fowmilaj19769 ай бұрын
a=a+b b=a-b a=a-b
@Prakashkrishnannkp9 ай бұрын
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);
@BrototypeMalayalam9 ай бұрын
3 hour telegram Join the Learning Club, our tech support will help you. Join here: brototype.com/3h/?ref=ytdescription
@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 Жыл бұрын
sry, this is wrong.
@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; }