Use of logical operators in c language

SHARE:

in this article, I share with you little code of C programming that how logical operators work.

this is an example of Marksheet where I use logical operators.


Use of logical operators in c language

#include<conio.h>
#include<stdio.h>
main()
{
      //Use of logical operator &&
   
   
      int obt_matric,obt_inter,max_matric,max_inter;
      float per_matric,per_inter;
   
      printf("Enter matriculation obtained:");scanf("%d",&obt_matric);
      printf("Enter matriculation maximum:");scanf("%d",&max_matric);
      printf("Enter intermediate obtained:");scanf("%d",&obt_inter);
      printf("Enter intermediate maximum:"); scanf("%d",&max_inter);
   
      per_matric = obt_matric*100/max_matric;
      per_inter = obt_inter*100/max_inter;
   
      if(per_matric>=80 && per_inter>=80)
      printf("Congratulation! you got double top A-1 Grade in matric And Inter");
      else
      printf("You fail to got double top"); 
   
   
      getch();} 




COMMENTS

Name

Blogging,15,C Language,3,How to,26,Make Money,11,SEO,27,Web Development,24,
ltr
item
Weblog Tricks - Helping You Succeed To Become an entrepreneur: Use of logical operators in c language
Use of logical operators in c language
Use of logical operators in c language conditional operators in c relations operations assignments operation operators
https://4.bp.blogspot.com/-eus3EmUZhzA/XIII_Kuw6KI/AAAAAAAABTA/JWpEyBOTwlcitROn8Ku2W7_nniZAjxnvACLcBGAs/s640/Screenshot_5.jpg
https://4.bp.blogspot.com/-eus3EmUZhzA/XIII_Kuw6KI/AAAAAAAABTA/JWpEyBOTwlcitROn8Ku2W7_nniZAjxnvACLcBGAs/s72-c/Screenshot_5.jpg
Weblog Tricks - Helping You Succeed To Become an entrepreneur
https://www.weblogtricks.com/2019/03/use-of-logical-operators-in-c-language.html
https://www.weblogtricks.com/
https://www.weblogtricks.com/
https://www.weblogtricks.com/2019/03/use-of-logical-operators-in-c-language.html
true
3158682668530211189
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy