Use of logical operators in c language

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

      //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");
      printf("You fail to got double top"); 



Blogging,15,C Language,3,How to,30,Make Money,11,SEO,28,Web Development,25,
Weblog Tricks - Blogging Tricks for Beginners: 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
Weblog Tricks - Blogging Tricks for Beginners
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