i completed this video and understand if - else concept. Program: #include int main() { int telugu=62,hindi=56, english=76,maths=99,science=62,social=52; int totalMarks=600; int obtainedMarks = telugu+hindi+english+maths+science+social; float percentage = ((float)obtainedMarks/totalMarks)*100; printf("Percentage: %.2f ",percentage ); if (percentage>=70){ printf("You have passed in distinction."); } else if(percentage=60){ printf("You have passed in First Class."); } else if (percentage=50){ printf("You have passed in Second Class."); } else { printf("failed!!! Better luck next time."); } return 0; }
recorded classes are also very good, after the live classes if you think any topic missed or wants to share its better to record and share.if you have time.
#include int main() { // Marks for three subjects int tel = 90; int hin = 59; int mat = 28; // total marks and percentage int sum = tel + hin + mat; float per = (sum * 100) / 300; printf("sum = %d per = % .2f ", sum, per);
if (per > 70) { printf("Distinction "); } else{ if (per >= 60) { printf("First Class "); } else{ if (per >= 50) { printf("Second Class "); } else{ if (per >= 40) { printf("Third Class "); } else { printf("Try next time "); } } }
} return 0; } output : sum = 177 per = 59.00 Second Class
Yes we understood if_else concept broo ❤❤
If is better sir
i completed this video and understand if - else concept.
Program:
#include
int main() {
int telugu=62,hindi=56, english=76,maths=99,science=62,social=52;
int totalMarks=600;
int obtainedMarks = telugu+hindi+english+maths+science+social;
float percentage = ((float)obtainedMarks/totalMarks)*100;
printf("Percentage: %.2f
",percentage );
if (percentage>=70){
printf("You have passed in distinction.");
}
else if(percentage=60){
printf("You have passed in First Class.");
}
else if (percentage=50){
printf("You have passed in Second Class.");
}
else {
printf("failed!!! Better luck next time.");
}
return 0;
}
This video is also completed bro
Super bro
int main() {
int a = 30;
int b = 35;
int c = 29;
int n = (float)a+b+c/150 * 100;
if(n>70){
printf("Passed in distinction");
}else{
if(n>=60 && n
if(n>=60 && n we no need to check n=70 is false => it will always < 70
ok bro. I got it@@svgie2047
ok bro got it...
recorded classes are also very good, after the live classes if you think any topic missed or wants to share its better to record and share.if you have time.
Sure
#include
int main() {
// Marks for three subjects
int tel = 90;
int hin = 59;
int mat = 28;
// total marks and percentage
int sum = tel + hin + mat;
float per = (sum * 100) / 300;
printf("sum = %d
per = % .2f
", sum, per);
if (per > 70) {
printf("Distinction
");
}
else{
if (per >= 60) {
printf("First Class
");
}
else{
if (per >= 50) {
printf("Second Class
");
}
else{
if (per >= 40) {
printf("Third Class
");
}
else {
printf("Try next time
");
}
}
}
}
return 0;
}
output :
sum = 177
per = 59.00
Second Class
Can u conduct classes on evening bro if possible...
it is not possible because of my Office Timings and meetings
@@svgie2047Ok bro....I was unable to clear my doubts.....I was in school at that time bro ....
@@angleammuluu1209 We are planning few Q & A sessions on weekends
very soon
meanwhile - you can send your questions to email , i will try to explain
@@svgie2047 Tq bro .....