SlideShare a Scribd company logo
C PROGRAMMING
Display: area
Code:
Output:
Flowchart
WriteaprogramtocalculatetheareaofaTriangle.
Start
Calculation
area=.5*Base*Altitude
Take input
Altitude, Base
End
C PROGRAMMING
Display: r
Code:
Output:
Flowchart
Writeaprogramtocalculatethe averageofgiventhreenumbers.
Start
Calculation
r = (a+b+c)/3.0
Take input
a, b, c
End
C PROGRAMMING
Display: How
obedient you are
Code:
Output:
Flowchart
Writeaprogramtotakeanumberlessthan10.
Start
Take input
n
n<10
?
Display:
How stupid!!!
End
Yes No
C PROGRAMMING
Display: ft
Code:
Output:
Flowchart
WriteaprogramtocalculateFahrenheittemperaturefromCelsiustemperature.
Start
Calculation
ft = 32 + (ct*9)/5
Take input
ct
End
C PROGRAMMING
Code:
Output:
Writeaprogramtosolvequadraticequation.
C PROGRAMMING
Display: Roots are
Complex!!!
Display: Roots
are= Root1, Root2
Display: Roots
are Equal= Root1
Flowchart
Start
Calculation
d = (b*b) – (4*a*c)
Take values for
a, b, c
d < 0
?
Yes No
d = 0
?
Yes No
Calculation
t=sqrt(d)
Root1= (-b+t)/2*a
Root2= (-b-t)/2*a
Calculation
Root1= -b/2*a
End
C PROGRAMMING
Code:
Output:
WriteaprogramtocheckthegivenyearisLeapyearornot.
C PROGRAMMING
Flowchart
Start
Take input
a
a %
100==
0?
Yes No
a %
400==
0?
Yes No a %
4==0?
Yes No
Display: The
yearis LeapYear
Display:The year
isnot Leap Year
Display: The
yearis LeapYear
Display:The year
isnot Leap Year
End
C PROGRAMMING
Code:
Output:
//without third variable
Code:
Output:
Writeaprogramtoswapthevaluesoftwovariable.
C PROGRAMMING
Code:
Output:
Take3x3Matrixanddisplayit.
C PROGRAMMING
Code:
Output:
Take3x3matrixandgiverowwiseaddition.
C PROGRAMMING
Output:
C PROGRAMMING
Writeaprogramtoaddtwo3x3matrices
C PROGRAMMING
C PROGRAMMING
Code:
Writeaprogramtomultiplytwo3x3matrices
C PROGRAMMING
Output:
C PROGRAMMING
Code:
Output:
Writeaprogramtoaddthreenumbers.
C PROGRAMMING
Code:
Output:
WriteaprogramtofindthelargestvalueamongthreenumbersusingArray
C PROGRAMMING
Code:
Output:
Writeaprogramtoprintupto1fromagivennumberusingdo-whileloop
C PROGRAMMING
Code:
Output:
Writeaprogramtofindthelargestandthesmallestvalueamongthreegivennumbers.
C PROGRAMMING
Code:
Output:
CallbyValue~Writeaprogramtoaddtwonumbers.
C PROGRAMMING
Code:
Output:
Writeaprogramtoprintupto1fromagivennumberusingwhileloop
C PROGRAMMING
Code:
Output:
Pointer-WriteaprogramtoswapthevaluesoftwovariableusingPointer.
C PROGRAMMING
Code:
Output:
Writeaprogramtoevaluatefactorialwithoutusingrecursion
C PROGRAMMING
Code:
Output:
Recursion-WriteaprogramtoevaluatefactorialofagivennumberusingRecursion.

More Related Content

PPTX
CSharp Presentation
PDF
MANAGING INPUT AND OUTPUT OPERATIONS IN C MRS.SOWMYA JYOTHI.pdf
PPTX
Turbo C Graphics and Mouse Programming
PPTX
Introduction to c++
PPT
1. over view and history of c
PPTX
Control statements in c
PPT
Variables in C Programming
PPTX
Introduction to C Programming
CSharp Presentation
MANAGING INPUT AND OUTPUT OPERATIONS IN C MRS.SOWMYA JYOTHI.pdf
Turbo C Graphics and Mouse Programming
Introduction to c++
1. over view and history of c
Control statements in c
Variables in C Programming
Introduction to C Programming

What's hot (20)

PPT
Introduction To C#
PPTX
C++ string
PPTX
User defined functions
DOC
C fundamental
PPT
Packages,interfaces and exceptions
PPTX
C++ compilation process
PPTX
Looping statements in C
PPTX
C programming
PPTX
The Loops
PPTX
C language
PDF
Dart workshop
PPT
C presentation book
PPTX
Go Programming Language (Golang)
PPTX
Data Type in C Programming
PPTX
Multiple inheritance in c++
PPTX
C++ language basic
PPTX
Managing input and output operations in c
PPSX
Introduction to java
PPTX
.NET and C# Introduction
Introduction To C#
C++ string
User defined functions
C fundamental
Packages,interfaces and exceptions
C++ compilation process
Looping statements in C
C programming
The Loops
C language
Dart workshop
C presentation book
Go Programming Language (Golang)
Data Type in C Programming
Multiple inheritance in c++
C++ language basic
Managing input and output operations in c
Introduction to java
.NET and C# Introduction
Ad

Viewers also liked (20)

PPTX
Algorithms and Flowcharts
PPT
Lesson plan 2 matt 3
PPT
Unit 3 Foc
PPTX
Number series
PDF
Data localization and translation
PPT
Php Docs
PPTX
Number Series: How To Solve Questions with Short Tricks
PDF
"Internationalisation with PHP and Intl" source code
PPTX
Multi language for php with gettext
ODP
Handling multibyte CSV files in PHP
PPT
The Big Documentation Extravaganza
PDF
Problem Solving with Algorithms and Data Structures
PDF
Grand Rapids PHP Meetup: Behavioral Driven Development with Behat
PDF
People code events flowchart
ODP
Internationalisation with PHP and Intl
PPTX
Logical reasoning number series
PDF
Computer Science Engineering : Data structure & algorithm, THE GATE ACADEMY
PPT
Cmp104 lec 7 algorithm and flowcharts
PPTX
Data Structure & Algorithms | Computer Science
PPTX
Basics of computer science
Algorithms and Flowcharts
Lesson plan 2 matt 3
Unit 3 Foc
Number series
Data localization and translation
Php Docs
Number Series: How To Solve Questions with Short Tricks
"Internationalisation with PHP and Intl" source code
Multi language for php with gettext
Handling multibyte CSV files in PHP
The Big Documentation Extravaganza
Problem Solving with Algorithms and Data Structures
Grand Rapids PHP Meetup: Behavioral Driven Development with Behat
People code events flowchart
Internationalisation with PHP and Intl
Logical reasoning number series
Computer Science Engineering : Data structure & algorithm, THE GATE ACADEMY
Cmp104 lec 7 algorithm and flowcharts
Data Structure & Algorithms | Computer Science
Basics of computer science
Ad

Similar to C Programming (20)

DOCX
C program report tips
DOCX
C_Lab Manual_Part A.docx
DOCX
Chapter 1 Programming Fundamentals Assignment.docx
PPTX
comp2
PPT
Fundamental of C Programming Language and Basic Input/Output Function
PPTX
C language
DOCX
C Programming
PDF
Lenguaje de Programación en C Presentacion
PDF
LAB_MANUAL_cpl_21scheme-2.pdf
PPTX
Building Simple C Program
DOC
c programing
PDF
Computer P-Lab-Manual acc to syllabus.pdf
PDF
LMmanual.pdf
PDF
Plsql programs(encrypted)
DOCX
Best C Programming Solution
DOC
C lab-programs
DOCX
C Programming
PDF
C programming Assignments and Questions.pdf
PPT
pointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjb
PPT
pointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjb
C program report tips
C_Lab Manual_Part A.docx
Chapter 1 Programming Fundamentals Assignment.docx
comp2
Fundamental of C Programming Language and Basic Input/Output Function
C language
C Programming
Lenguaje de Programación en C Presentacion
LAB_MANUAL_cpl_21scheme-2.pdf
Building Simple C Program
c programing
Computer P-Lab-Manual acc to syllabus.pdf
LMmanual.pdf
Plsql programs(encrypted)
Best C Programming Solution
C lab-programs
C Programming
C programming Assignments and Questions.pdf
pointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjb
pointer.ppt hfkogfhkigfvjjgdsyhhgfdfghjb

More from Rumman Ansari (20)

PDF
Sql tutorial
PDF
C programming exercises and solutions
PDF
Java Tutorial best website
DOCX
Java Questions and Answers
DOCX
servlet programming
PPTX
C program to write c program without using main function
PPTX
Steps for c program execution
PPTX
Pointer in c program
PPTX
My first program in c, hello world !
PPTX
How c program execute in c program
PPTX
What is token c programming
PPTX
What is identifier c programming
PPTX
What is keyword in c programming
PPTX
Type casting in c programming
PPTX
C Programming Language Part 11
PPTX
C Programming Language Part 9
PPTX
C Programming Language Part 8
PPTX
C Programming Language Part 7
PPTX
C Programming Language Part 6
PPTX
C Programming Language Part 5
Sql tutorial
C programming exercises and solutions
Java Tutorial best website
Java Questions and Answers
servlet programming
C program to write c program without using main function
Steps for c program execution
Pointer in c program
My first program in c, hello world !
How c program execute in c program
What is token c programming
What is identifier c programming
What is keyword in c programming
Type casting in c programming
C Programming Language Part 11
C Programming Language Part 9
C Programming Language Part 8
C Programming Language Part 7
C Programming Language Part 6
C Programming Language Part 5

Recently uploaded (20)

PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
July 2025: Top 10 Read Articles Advanced Information Technology
PDF
flutter Launcher Icons, Splash Screens & Fonts
PPTX
The-Looming-Shadow-How-AI-Poses-Dangers-to-Humanity.pptx
PDF
B.Tech (Electrical Engineering ) 2024 syllabus.pdf
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Internship_Presentation_Final engineering.pptx
PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PDF
BRKDCN-2613.pdf Cisco AI DC NVIDIA presentation
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
436813905-LNG-Process-Overview-Short.pptx
PDF
Introduction to Data Science: data science process
PPTX
Glazing at Facade, functions, types of glazing
PPTX
“Next-Gen AI: Trends Reshaping Our World”
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
AgentX UiPath Community Webinar series - Delhi
PPT
Drone Technology Electronics components_1
PPTX
MET 305 MODULE 1 KTU 2019 SCHEME 25.pptx
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
July 2025: Top 10 Read Articles Advanced Information Technology
flutter Launcher Icons, Splash Screens & Fonts
The-Looming-Shadow-How-AI-Poses-Dangers-to-Humanity.pptx
B.Tech (Electrical Engineering ) 2024 syllabus.pdf
Operating System & Kernel Study Guide-1 - converted.pdf
Internship_Presentation_Final engineering.pptx
Structs to JSON How Go Powers REST APIs.pdf
Lesson 3_Tessellation.pptx finite Mathematics
BRKDCN-2613.pdf Cisco AI DC NVIDIA presentation
CH1 Production IntroductoryConcepts.pptx
436813905-LNG-Process-Overview-Short.pptx
Introduction to Data Science: data science process
Glazing at Facade, functions, types of glazing
“Next-Gen AI: Trends Reshaping Our World”
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
AgentX UiPath Community Webinar series - Delhi
Drone Technology Electronics components_1
MET 305 MODULE 1 KTU 2019 SCHEME 25.pptx

C Programming