SlideShare a Scribd company logo
1 of 16
 Definition of Software & Hardware.
 Why Learn About Software?
 Types of Software.
 Difference of Software & Hardware.
 if . . . Then. . . else statement.
 if . . . Then. . . else flowchart.
 if . . . Then. . . else example.
 Conclusion
Software: Software refers to collection of programs .
Software package: It’s programs that slove a specific
problem.
Hardware: The physical devices that a
computermade of are refered to as hardware.
 Software is indispensable for any computer
system.
 Systems software needed for input,
calculations, and output
 Personal tasks using software
 InIcome tax preparation
 Keeping a budget
 Internet research
 Games
Three types of software are:
 System Software
 Application Software
 Open source Software
System Software includes the Operating System
and all the utilities that enable the computer to
function.
System Software: System software is the
programs that control and manage the basic
operations of a computer.
Example:
Operating Systems, Compiler, Loader, Linker,
Interpreter.
Operating System is a software, which makes a
computer to actually work.
 It is the software the enables all the
programs was use.
 The OS organizes and controls the
hardware.
 OS acts as an interface between the
 application
programs and the machine hardware.
Examples: Windows, Linux, Unix and Mac OS, etc.
Application Software: Application software
slove a specific problem or to do a specific task.
Example:
Payroll systems, Manage student database,
Word Processor, Spreadsheet and Database
Management System etc.
Word processing is a tool that helps user in creating,
editing, and printing documents.
 Spell checking
 Standard layouts for normal documents
 Have some characters appear in bold print,
italics, or underlined
 Save the document so it can be used again
print the document.
Examples: WordPerfect and Microsoft Word
Open Source Software: Open source software is
computer software whose source code is available
under a license that permits users to use, change,
and improve the software, and to redistribute it in
modified or unmodified form.
Example:
Linux, Netscape, Apache, etc.
Software Hardware
Software refers to collection of
programs .
Hardware is physical part computer
that cause processing of data.
Software cannot be executed without
hardware.
Hardware cannot be perform any task
without software.
Software cannot be touched. Hardware can be seen and touched.
Software is reinstalled if the problem
is not sloved.
Hardware is replaced if the problem is
not sloved.
An if statement can be followed by an optional else statement, which
executes when the boolean expression is false.
Syntax: The syntax of an if...else statement in C programming
language is:
if(boolean_expression)
{
/* statement(s) will execute if the boolean expression is true */
}
else
{
/* statement(s) will execute if the boolean expression is false */
}
Yes No
Then else
Start
If
(condi
tion)
Process 2Process 1
 Write a C program to check a number using if . . . else entered by
user is even or odd ?
#include<stdio.h>
int main()
{
int number;
printf("Enter a number: ");
scanf("%d",&number);
if(number%2==0)
printf(“n%d Is Evenn”,number);
elses
printf(“n%d Is Oddn”,number);
}
As Both software & hardware Complementary to each other .By
the installation of software in computer hardware the user can
access the computer components and can do the desired job.
An if statement can be followed by an optional else statement,
which executes when the boolean expression is false.

More Related Content

What's hot

Computer hardware component Created by king parmeshwar pawar
Computer hardware component Created by king parmeshwar pawarComputer hardware component Created by king parmeshwar pawar
Computer hardware component Created by king parmeshwar pawarKing Parmeshwar Pawar :) Edu.Li
 
Basic computer fundamentals
Basic computer fundamentalsBasic computer fundamentals
Basic computer fundamentalsJames Macalalad
 
Presentation on Computer.
Presentation on Computer.Presentation on Computer.
Presentation on Computer.KunalManglani
 
Memory & storage devices
Memory & storage devicesMemory & storage devices
Memory & storage devicesHamza Mughal
 
Block diagram of motherboard
Block diagram of motherboardBlock diagram of motherboard
Block diagram of motherboardShreyJagad
 
Computer Systems
Computer SystemsComputer Systems
Computer Systemsdrs
 
Major Functions of Computer Systems
Major Functions of Computer SystemsMajor Functions of Computer Systems
Major Functions of Computer SystemsRaul Correa
 
Computer Hardware And Configuration
Computer Hardware And ConfigurationComputer Hardware And Configuration
Computer Hardware And Configurationwaqar ahmed
 
Computer misuse and criminal law
Computer misuse and criminal lawComputer misuse and criminal law
Computer misuse and criminal lawZaheer Irshad
 
Computer System Basics
Computer System BasicsComputer System Basics
Computer System Basicspathumbee
 
Basic computer organization
Basic computer organizationBasic computer organization
Basic computer organizationSAMIR NAIK
 
Presentation on Computer Processor
Presentation on Computer ProcessorPresentation on Computer Processor
Presentation on Computer ProcessorMoizAlSamad
 
ANTIVIRUS AND VIRUS Powerpoint presentation
ANTIVIRUS AND VIRUS Powerpoint presentationANTIVIRUS AND VIRUS Powerpoint presentation
ANTIVIRUS AND VIRUS Powerpoint presentationabhijit chintamani
 
Fundamentals of Computer.pptx
Fundamentals of Computer.pptxFundamentals of Computer.pptx
Fundamentals of Computer.pptxZORAIZ HAIDER
 

What's hot (20)

Computer hardware component Created by king parmeshwar pawar
Computer hardware component Created by king parmeshwar pawarComputer hardware component Created by king parmeshwar pawar
Computer hardware component Created by king parmeshwar pawar
 
Basic computer fundamentals
Basic computer fundamentalsBasic computer fundamentals
Basic computer fundamentals
 
Presentation on Computer.
Presentation on Computer.Presentation on Computer.
Presentation on Computer.
 
Memory & storage devices
Memory & storage devicesMemory & storage devices
Memory & storage devices
 
Block diagram of motherboard
Block diagram of motherboardBlock diagram of motherboard
Block diagram of motherboard
 
Computer basics
Computer basicsComputer basics
Computer basics
 
Computer Systems
Computer SystemsComputer Systems
Computer Systems
 
Major Functions of Computer Systems
Major Functions of Computer SystemsMajor Functions of Computer Systems
Major Functions of Computer Systems
 
HARD DISK DRIVE ppt
HARD DISK DRIVE pptHARD DISK DRIVE ppt
HARD DISK DRIVE ppt
 
Computer Hardware And Configuration
Computer Hardware And ConfigurationComputer Hardware And Configuration
Computer Hardware And Configuration
 
Computer misuse and criminal law
Computer misuse and criminal lawComputer misuse and criminal law
Computer misuse and criminal law
 
Cpu
CpuCpu
Cpu
 
Computer System Basics
Computer System BasicsComputer System Basics
Computer System Basics
 
Basic computer organization
Basic computer organizationBasic computer organization
Basic computer organization
 
Computer Software & its Types
Computer Software & its Types Computer Software & its Types
Computer Software & its Types
 
Presentation on Computer Processor
Presentation on Computer ProcessorPresentation on Computer Processor
Presentation on Computer Processor
 
ANTIVIRUS AND VIRUS Powerpoint presentation
ANTIVIRUS AND VIRUS Powerpoint presentationANTIVIRUS AND VIRUS Powerpoint presentation
ANTIVIRUS AND VIRUS Powerpoint presentation
 
Operating system
Operating system Operating system
Operating system
 
Computer virus
Computer virusComputer virus
Computer virus
 
Fundamentals of Computer.pptx
Fundamentals of Computer.pptxFundamentals of Computer.pptx
Fundamentals of Computer.pptx
 

Similar to Computer Software & Hardware by MHM

Similar to Computer Software & Hardware by MHM (20)

Computer software 2
Computer software 2Computer software 2
Computer software 2
 
bui ba ba
bui ba babui ba ba
bui ba ba
 
Unit2_1.pdf
Unit2_1.pdfUnit2_1.pdf
Unit2_1.pdf
 
Ppt softwears
Ppt softwearsPpt softwears
Ppt softwears
 
Computer software 2
Computer software 2Computer software 2
Computer software 2
 
Pooja H
Pooja H Pooja H
Pooja H
 
Introduction to computer
Introduction to computerIntroduction to computer
Introduction to computer
 
Computer software
Computer softwareComputer software
Computer software
 
Last module pc_software
Last module pc_softwareLast module pc_software
Last module pc_software
 
Introduction to computer software
Introduction to computer softwareIntroduction to computer software
Introduction to computer software
 
Introduction to computer software
Introduction to computer softwareIntroduction to computer software
Introduction to computer software
 
B.sc i agri u 2 computer software
B.sc i agri u 2 computer softwareB.sc i agri u 2 computer software
B.sc i agri u 2 computer software
 
B.sc i bio tech u 2 computer software
B.sc i bio tech u 2 computer softwareB.sc i bio tech u 2 computer software
B.sc i bio tech u 2 computer software
 
B.sc i bio chem u 2 computer software
B.sc i bio chem u 2 computer softwareB.sc i bio chem u 2 computer software
B.sc i bio chem u 2 computer software
 
B.sc i cs u 2 computer software
B.sc i cs u 2 computer softwareB.sc i cs u 2 computer software
B.sc i cs u 2 computer software
 
B.sc i micro bio u 2 computer software
B.sc i micro bio u 2 computer softwareB.sc i micro bio u 2 computer software
B.sc i micro bio u 2 computer software
 
computer software
computer softwarecomputer software
computer software
 
Lesson 5 computer software
Lesson 5 computer softwareLesson 5 computer software
Lesson 5 computer software
 
itcpresentationnew-150929164902-lva1-app6891.pdf
itcpresentationnew-150929164902-lva1-app6891.pdfitcpresentationnew-150929164902-lva1-app6891.pdf
itcpresentationnew-150929164902-lva1-app6891.pdf
 
System Software and Programming.pptx
System Software and Programming.pptxSystem Software and Programming.pptx
System Software and Programming.pptx
 

More from Md Mosharof Hosen

Error Detection and Error Correction by MHM.ppt
Error Detection and Error Correction by MHM.pptError Detection and Error Correction by MHM.ppt
Error Detection and Error Correction by MHM.pptMd Mosharof Hosen
 
Osi model or open system interconnection by MHM
Osi model or open system interconnection by MHMOsi model or open system interconnection by MHM
Osi model or open system interconnection by MHMMd Mosharof Hosen
 
Project on a man walking in the rain with an umbrella by MHM
Project on a man walking in the rain with an umbrella by MHMProject on a man walking in the rain with an umbrella by MHM
Project on a man walking in the rain with an umbrella by MHMMd Mosharof Hosen
 
Ray casting algorithm by mhm
Ray casting algorithm by mhmRay casting algorithm by mhm
Ray casting algorithm by mhmMd Mosharof Hosen
 
Matrix chain multiplication by MHM
Matrix chain multiplication by MHMMatrix chain multiplication by MHM
Matrix chain multiplication by MHMMd Mosharof Hosen
 
Measures of central tendency by MHM
Measures of central tendency by MHMMeasures of central tendency by MHM
Measures of central tendency by MHMMd Mosharof Hosen
 
Thermodynamics laws, Brownian motion, Van der Waals equation of state, Entropy
Thermodynamics laws, Brownian motion, Van der Waals equation of state, EntropyThermodynamics laws, Brownian motion, Van der Waals equation of state, Entropy
Thermodynamics laws, Brownian motion, Van der Waals equation of state, EntropyMd Mosharof Hosen
 
Electronics applications and components
Electronics applications and componentsElectronics applications and components
Electronics applications and componentsMd Mosharof Hosen
 
Differential Equation by MHM
Differential Equation by MHMDifferential Equation by MHM
Differential Equation by MHMMd Mosharof Hosen
 

More from Md Mosharof Hosen (12)

Error Detection and Error Correction by MHM.ppt
Error Detection and Error Correction by MHM.pptError Detection and Error Correction by MHM.ppt
Error Detection and Error Correction by MHM.ppt
 
SDLC Model by MHM
SDLC Model by MHMSDLC Model by MHM
SDLC Model by MHM
 
Osi model or open system interconnection by MHM
Osi model or open system interconnection by MHMOsi model or open system interconnection by MHM
Osi model or open system interconnection by MHM
 
Project on a man walking in the rain with an umbrella by MHM
Project on a man walking in the rain with an umbrella by MHMProject on a man walking in the rain with an umbrella by MHM
Project on a man walking in the rain with an umbrella by MHM
 
Ray casting algorithm by mhm
Ray casting algorithm by mhmRay casting algorithm by mhm
Ray casting algorithm by mhm
 
Ui design by mhm
Ui design by mhmUi design by mhm
Ui design by mhm
 
Matrix chain multiplication by MHM
Matrix chain multiplication by MHMMatrix chain multiplication by MHM
Matrix chain multiplication by MHM
 
Measures of central tendency by MHM
Measures of central tendency by MHMMeasures of central tendency by MHM
Measures of central tendency by MHM
 
Thermodynamics laws, Brownian motion, Van der Waals equation of state, Entropy
Thermodynamics laws, Brownian motion, Van der Waals equation of state, EntropyThermodynamics laws, Brownian motion, Van der Waals equation of state, Entropy
Thermodynamics laws, Brownian motion, Van der Waals equation of state, Entropy
 
Environment vs Technology
Environment  vs TechnologyEnvironment  vs Technology
Environment vs Technology
 
Electronics applications and components
Electronics applications and componentsElectronics applications and components
Electronics applications and components
 
Differential Equation by MHM
Differential Equation by MHMDifferential Equation by MHM
Differential Equation by MHM
 

Recently uploaded

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 

Recently uploaded (20)

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 

Computer Software & Hardware by MHM

  • 1.
  • 2.  Definition of Software & Hardware.  Why Learn About Software?  Types of Software.  Difference of Software & Hardware.  if . . . Then. . . else statement.  if . . . Then. . . else flowchart.  if . . . Then. . . else example.  Conclusion
  • 3. Software: Software refers to collection of programs . Software package: It’s programs that slove a specific problem. Hardware: The physical devices that a computermade of are refered to as hardware.
  • 4.  Software is indispensable for any computer system.  Systems software needed for input, calculations, and output  Personal tasks using software  InIcome tax preparation  Keeping a budget  Internet research  Games
  • 5. Three types of software are:  System Software  Application Software  Open source Software
  • 6. System Software includes the Operating System and all the utilities that enable the computer to function. System Software: System software is the programs that control and manage the basic operations of a computer. Example: Operating Systems, Compiler, Loader, Linker, Interpreter.
  • 7. Operating System is a software, which makes a computer to actually work.  It is the software the enables all the programs was use.  The OS organizes and controls the hardware.  OS acts as an interface between the  application programs and the machine hardware. Examples: Windows, Linux, Unix and Mac OS, etc.
  • 8. Application Software: Application software slove a specific problem or to do a specific task. Example: Payroll systems, Manage student database, Word Processor, Spreadsheet and Database Management System etc.
  • 9. Word processing is a tool that helps user in creating, editing, and printing documents.  Spell checking  Standard layouts for normal documents  Have some characters appear in bold print, italics, or underlined  Save the document so it can be used again print the document. Examples: WordPerfect and Microsoft Word
  • 10. Open Source Software: Open source software is computer software whose source code is available under a license that permits users to use, change, and improve the software, and to redistribute it in modified or unmodified form. Example: Linux, Netscape, Apache, etc.
  • 11. Software Hardware Software refers to collection of programs . Hardware is physical part computer that cause processing of data. Software cannot be executed without hardware. Hardware cannot be perform any task without software. Software cannot be touched. Hardware can be seen and touched. Software is reinstalled if the problem is not sloved. Hardware is replaced if the problem is not sloved.
  • 12. An if statement can be followed by an optional else statement, which executes when the boolean expression is false. Syntax: The syntax of an if...else statement in C programming language is: if(boolean_expression) { /* statement(s) will execute if the boolean expression is true */ } else { /* statement(s) will execute if the boolean expression is false */ }
  • 14.  Write a C program to check a number using if . . . else entered by user is even or odd ? #include<stdio.h> int main() { int number; printf("Enter a number: "); scanf("%d",&number); if(number%2==0) printf(“n%d Is Evenn”,number); elses printf(“n%d Is Oddn”,number); }
  • 15.
  • 16. As Both software & hardware Complementary to each other .By the installation of software in computer hardware the user can access the computer components and can do the desired job. An if statement can be followed by an optional else statement, which executes when the boolean expression is false.