The document discusses arithmetic operators, relational operators, and decision making in C programming. It covers the different arithmetic operators like addition, subtraction, multiplication, division, and modulus. It explains the rules of operator precedence in expressions and evaluations. It also discusses relational operators and how they are used to form conditions for decision making using if statements. Examples are provided to demonstrate the use of relational operators to compare values.
A computer languages are the languages by which a user command a computer to work on the algorithm which a user has written to get an output.
View it to know more about computer language !!!
A computer languages are the languages by which a user command a computer to work on the algorithm which a user has written to get an output.
View it to know more about computer language !!!
Get more from www.programmingcampus.com
Operators in c programming
-definition of operator
-types of operators
1.Arithmetic operators.
2. Relational operators.
3. Logical operators.
4. Assignment operators.
5. Increment & decrement operators.
a. pre and post increment operator
b. pre and post increment operator
6. Conditional operators.
7. Bitwise operators.
8. Special operators
The Three Basic Selection Structures in C++ Programming ConceptsTech
Now check the powerpoint presentation about selection structures in programming. For more visit www.techora.net
Three types of selection structures are available like :
1 - Sequence Structure
2 - Selection Strcuture
3 - Repetition Structure
In this PPT slide, we discuss about the selection structure
1 - if statements
2 - if else statement
3 - switch statement
Get more from www.programmingcampus.com
Operators in c programming
-definition of operator
-types of operators
1.Arithmetic operators.
2. Relational operators.
3. Logical operators.
4. Assignment operators.
5. Increment & decrement operators.
a. pre and post increment operator
b. pre and post increment operator
6. Conditional operators.
7. Bitwise operators.
8. Special operators
The Three Basic Selection Structures in C++ Programming ConceptsTech
Now check the powerpoint presentation about selection structures in programming. For more visit www.techora.net
Three types of selection structures are available like :
1 - Sequence Structure
2 - Selection Strcuture
3 - Repetition Structure
In this PPT slide, we discuss about the selection structure
1 - if statements
2 - if else statement
3 - switch statement
This lecture talks about parsing. Briefly gives overview on lexicon, categorization, grammar rules, syntactic tree, word senses and various challenges of natural language processing
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
Safalta Digital marketing institute in Noida, provide complete applications that encompass a huge range of virtual advertising and marketing additives, which includes search engine optimization, virtual communication advertising, pay-per-click on marketing, content material advertising, internet analytics, and greater. These university courses are designed for students who possess a comprehensive understanding of virtual marketing strategies and attributes.Safalta Digital Marketing Institute in Noida is a first choice for young individuals or students who are looking to start their careers in the field of digital advertising. The institute gives specialized courses designed and certification.
for beginners, providing thorough training in areas such as SEO, digital communication marketing, and PPC training in Noida. After finishing the program, students receive the certifications recognised by top different universitie, setting a strong foundation for a successful career in digital marketing.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Acetabularia Information For Class 9 .docxvaibhavrinwa19
Acetabularia acetabulum is a single-celled green alga that in its vegetative state is morphologically differentiated into a basal rhizoid and an axially elongated stalk, which bears whorls of branching hairs. The single diploid nucleus resides in the rhizoid.
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
Normal Labour/ Stages of Labour/ Mechanism of LabourWasim Ak
Normal labor is also termed spontaneous labor, defined as the natural physiological process through which the fetus, placenta, and membranes are expelled from the uterus through the birth canal at term (37 to 42 weeks
Normal Labour/ Stages of Labour/ Mechanism of Labour
Lec 03. Arithmetic Operator / Relational Operator
1. Lecture 3Lecture 3
Version 1.0Version 1.0
Arithmetic OperatorArithmetic Operator
Relational OperatorRelational Operator
Decision MakingDecision Making
KeywordsKeywords
2. 2Rushdi Shams, Dept of CSE, KUET, Bangladesh
Arithmetic OperatorsArithmetic Operators
Most C programs perform arithmetic calculationsMost C programs perform arithmetic calculations
3. 3Rushdi Shams, Dept of CSE, KUET, Bangladesh
Arithmetic operatorsArithmetic operators
The arithmetic operators are allThe arithmetic operators are all binary operatorsbinary operators
The expression 3+7 contains binary operator +The expression 3+7 contains binary operator +
and twoand two operandsoperands 3 and 73 and 7
Integer division yields an integer result. 17/4 is 4Integer division yields an integer result. 17/4 is 4
The modulus operator means the remainderThe modulus operator means the remainder
after a division operation. 17%4 is 1after a division operation. 17%4 is 1
4. 4Rushdi Shams, Dept of CSE, KUET, Bangladesh
Rules of Operator PrecedenceRules of Operator Precedence
1.1. Expressions or portion of expressionsExpressions or portion of expressions
contained in pairs of parentheses are evaluatedcontained in pairs of parentheses are evaluated
first. In case of nested parentheses, the innerfirst. In case of nested parentheses, the inner
most parentheses will be evaluated first.most parentheses will be evaluated first.
5. 5Rushdi Shams, Dept of CSE, KUET, Bangladesh
Rules of Operator PrecedenceRules of Operator Precedence
2.2. Multiplication, division and modulusMultiplication, division and modulus
operations are evaluated next. If an expressionoperations are evaluated next. If an expression
contains several *, / or % operations,contains several *, / or % operations,
evaluations proceed from left to right. Theseevaluations proceed from left to right. These
operators are on the same level of precedence.operators are on the same level of precedence.
6. 6Rushdi Shams, Dept of CSE, KUET, Bangladesh
Rules of Operator PrecedenceRules of Operator Precedence
3.3. Addition and subtraction are evaluated last. IfAddition and subtraction are evaluated last. If
an expression contains several + or -an expression contains several + or -
operations, evaluations proceed from left tooperations, evaluations proceed from left to
right.right.
7. 7Rushdi Shams, Dept of CSE, KUET, Bangladesh
Brain Storm IBrain Storm I
m=(a+b+c+d+e)/5m=(a+b+c+d+e)/5
m=a+b+c+d+e/5m=a+b+c+d+e/5
What are the differences here?What are the differences here?
8. 8Rushdi Shams, Dept of CSE, KUET, Bangladesh
Brain Storm IIBrain Storm II
y=mx+cy=mx+c
How do you write this expression in C? AnyHow do you write this expression in C? Any
parenthesis required?parenthesis required?
9. 9Rushdi Shams, Dept of CSE, KUET, Bangladesh
Brain Storm IIIBrain Storm III
z=pr%q+w/x-yz=pr%q+w/x-y
It is in algebraic format. How will it be written inIt is in algebraic format. How will it be written in
C? What will be the order of precedence givenC? What will be the order of precedence given
by the C compiler while it is written in Cby the C compiler while it is written in C
format?format?
10. 10Rushdi Shams, Dept of CSE, KUET, Bangladesh
Decision Making: RelationalDecision Making: Relational
OperatorsOperators
Executable C expressions either doExecutable C expressions either do actionsactions (calculations(calculations
or input or output) or make aor input or output) or make a decisiondecision
For example, in a program where the user will put hisFor example, in a program where the user will put his
mark and want to know if he passed or failed, you willmark and want to know if he passed or failed, you will
have to do three things-have to do three things-
1. Take the mark from the user.1. Take the mark from the user. ActionAction
2. Compare the mark with a predefined pass mark range.2. Compare the mark with a predefined pass mark range.
DecisionDecision
3. Provide that decision to user.3. Provide that decision to user. ActionAction
11. 11Rushdi Shams, Dept of CSE, KUET, Bangladesh
Decision Making: RelationalDecision Making: Relational
OperatorsOperators
The decision in C is done by a control structureThe decision in C is done by a control structure
calledcalled ifif
It allows a program to make a decision based onIt allows a program to make a decision based on
the truth or falsity of some statement of factthe truth or falsity of some statement of fact
calledcalled conditioncondition
If the condition is true,If the condition is true, the body statementthe body statement will bewill be
executed otherwise not- it will execute the nextexecuted otherwise not- it will execute the next
statement after thestatement after the ifif structurestructure
12. 12Rushdi Shams, Dept of CSE, KUET, Bangladesh
Decision Making: RelationalDecision Making: Relational
OperatorsOperators
Conditions inConditions in ifif structures are formed by usingstructures are formed by using
relational operatorsrelational operators
The relational operators have the same level ofThe relational operators have the same level of
precedence and they associate left to rightprecedence and they associate left to right
OnlyOnly equality operatorsequality operators have a lower level ofhave a lower level of
precedence than others and they also associateprecedence than others and they also associate
left to rightleft to right
14. 14Rushdi Shams, Dept of CSE, KUET, Bangladesh
Decision Making: RelationalDecision Making: Relational
OperatorsOperators
There is a subtle difference between == and =.There is a subtle difference between == and =.
In case of =, it is associated from right to left.In case of =, it is associated from right to left.
a=b means the value of b is assigned to aa=b means the value of b is assigned to a
15. 15Rushdi Shams, Dept of CSE, KUET, Bangladesh
Decision Making: RelationalDecision Making: Relational
OperatorsOperators
#include <stdio.h>#include <stdio.h>
#include <conio.h>#include <conio.h>
void main(){void main(){
clrscr();clrscr();
int num1, num2;int num1, num2;
printf(“Enter two numbers to compare: ”);printf(“Enter two numbers to compare: ”);
scanf(“%d %d”, &num1, &num2);scanf(“%d %d”, &num1, &num2);
if(num1 == num2)if(num1 == num2)
printf(“%d and %d are equal”, num1, num2);printf(“%d and %d are equal”, num1, num2);
if(num1 != num2)if(num1 != num2)
printf(“%d and %d are not equal”, num1, num2);printf(“%d and %d are not equal”, num1, num2);
if(num1 < num2)if(num1 < num2)
printf(“%d is less than %d”, num1, num2);printf(“%d is less than %d”, num1, num2);
if(num1 > num2)if(num1 > num2)
printf(“%d is greater than %d”, num1, num2);printf(“%d is greater than %d”, num1, num2);
if(num1 <= num2)if(num1 <= num2)
printf(“%d is less than or equal to %d”, num1, num2);printf(“%d is less than or equal to %d”, num1, num2);
if(num1 >= num2)if(num1 >= num2)
printf(“%d is greater than or equal to %d”, num1, num2);printf(“%d is greater than or equal to %d”, num1, num2);
getch();getch();
}}
16. 16Rushdi Shams, Dept of CSE, KUET, Bangladesh
KeywordsKeywords
intint andand ifif areare keywordskeywords oror reserved wordsreserved words in Cin C
You cannot use them as variable names as CYou cannot use them as variable names as C
compiler processes keywords in a different waycompiler processes keywords in a different way
18. 18Rushdi Shams, Dept of CSE, KUET, Bangladesh
QsQs
1.1. Every C program must have a function. What is its name?Every C program must have a function. What is its name?
2.2. What symbols are used to contain the body of the function?What symbols are used to contain the body of the function?
3.3. With what symbol every statement ends with?With what symbol every statement ends with?
4.4. Which function displays information on the screen? WhichWhich function displays information on the screen? Which
header file is required for that function?header file is required for that function?
5.5. What does n represents?What does n represents?
6.6. Which function takes input from the user?Which function takes input from the user?
7.7. Which specifier is required to represent integer?Which specifier is required to represent integer?
8.8. Which keyword is used to make decision?Which keyword is used to make decision?
9.9. What are used to make a program readable?What are used to make a program readable?