This is a sample video. To access the full content, please Login
in the below coding,if(c>=20)printf("c is grater than or equal to 20");else if(c<=20 && c>=10)printf("c is between 10 and 20");the value of c is 20,output will be "c is grater than or equal to 20",why the else if (qualifies for the same condition) does not get executed
Using if statement#include<stdio.h>int main (){int a,b;printf("enter the value of a,b");scand("%d%d",&a,&b);if(a>b){printf("a is greater than b\n");}if(a<b){printf("a is less than b\n");}return 0;} The output is as followsa=45b=56a is less than b
How else is working even if i terminate it by semicolon?#include <stdio.h>int main(){ int a,b,c; printf("Enter the value of a,b and c \\n"); scanf("%d%d%d",&a,&b,&c); if(a>b && a>c) { printf("a is greater than b and c \\n"); } else if(b>a && b>c) { printf("b is greater than a and c\\n"); } else; { printf("c is greater than a and b\\n"); }return 0;}
write a c program to find the roots of a quadratic equation
1652 visits
Outline:ప్రోగ్రాం లో కండిషన్ల తనిఖీ స్టేట్ మెంట్లు అంటే ఏమిటి ఇఫ్ మరియు ఇఫ్ ఎల్స్ స్టేట్ మెంట్స్ యొక్క సైన్ ట్యాక్స్ తప్పులు
ప్రోగ్రాం లో కండిషన్ల తనిఖీ స్టేట్ మెంట్లు అంటే ఏమిటి ఇఫ్ మరియు ఇఫ్ ఎల్స్ స్టేట్ మెంట్స్ యొక్క సైన్ ట్యాక్స్ తప్పులు
Show video info
Pre-requisite