SlideShare a Scribd company logo
PBL8.1




1.



2.
PBL 8.1




1.
2.
3.




-                        3


     10%
-




                     /
http://kroohathaichon.w
                     ordpress.com




                             3
                       10%




#include <stdio.h>
#include <conio.h>

main()

{

    float U1,P1,T,U2,P2,discount;

    char Pd1[20],name[20],Pd2[20];

    printf("n Enter your namet:t");

    scanf("%s",name);

    printf("nPd1t:t");

    scanf("%s",Pd1);

    printf("nU1tt:t");

    scanf("%f",&U1);

    printf("nP1tt:t");

    scanf("%f",&P1);

    printf("n+++++++++++++++++++++++++n");

    printf("nnPd2t:t");

    scanf("%s",Pd2);

    printf("nU2tt:t");

    scanf("%f",&U2);

    printf("nP2tt:t");

    scanf("%f",&P2);

    T=((U1*P1)+(U2*P2));
discount=(T*.10);

    printf("n+++++++++++++++++++++++++nn");

    printf("Total Price ==>t:t%.2f",T);

    printf("n+++++++++++++++++++++++++nn");

    printf("ndiscount 10% ==>t:t%.2f",discount);

getch();

}




                            5

                          3-4

                          1-2

More Related Content

What's hot

ภาษาซี
ภาษาซีภาษาซี
ภาษาซีkramsri
 
Add digits of number in c
Add digits of number in c Add digits of number in c
Add digits of number in c
mohdshanu
 
Oopsprc1e
Oopsprc1eOopsprc1e
Oopsprc1e
Ankit Dubey
 
C언어 스터디 강의자료 - 1차시
C언어 스터디 강의자료 - 1차시C언어 스터디 강의자료 - 1차시
C언어 스터디 강의자료 - 1차시
Junha Jang
 
ภาษาซี
ภาษาซีภาษาซี
ภาษาซีkramsri
 
Array imp of list
Array imp of listArray imp of list
Array imp of list
Elavarasi K
 
Sqlcheetsheet
SqlcheetsheetSqlcheetsheet
Sqlcheetsheet
Nishant Upadhyay
 
Easy Blogging With Emacs -- Cheatsheet
Easy Blogging With Emacs -- CheatsheetEasy Blogging With Emacs -- Cheatsheet
Easy Blogging With Emacs -- CheatsheetDashamir Hoxha
 
2 3. standard io
2 3. standard io2 3. standard io
2 3. standard io웅식 전
 
The solution manual of c by robin
The solution manual of c by robinThe solution manual of c by robin
The solution manual of c by robin
Abdullah Al Naser
 
#2
#2#2
14. CodeIgniter adaugarea inregistrarilor
14. CodeIgniter adaugarea inregistrarilor14. CodeIgniter adaugarea inregistrarilor
14. CodeIgniter adaugarea inregistrarilor
Razvan Raducanu, PhD
 
DataStructures notes
DataStructures notesDataStructures notes
DataStructures notes
Lakshmi Sarvani Videla
 
11 1 포인터
11 1 포인터11 1 포인터
Static and dynamic scoping
Static and dynamic scopingStatic and dynamic scoping
Static and dynamic scoping
NusratShaikh16
 

What's hot (18)

ภาษาซี
ภาษาซีภาษาซี
ภาษาซี
 
Add digits of number in c
Add digits of number in c Add digits of number in c
Add digits of number in c
 
Oopsprc1e
Oopsprc1eOopsprc1e
Oopsprc1e
 
C언어 스터디 강의자료 - 1차시
C언어 스터디 강의자료 - 1차시C언어 스터디 강의자료 - 1차시
C언어 스터디 강의자료 - 1차시
 
ภาษาซี
ภาษาซีภาษาซี
ภาษาซี
 
Array imp of list
Array imp of listArray imp of list
Array imp of list
 
Vb
VbVb
Vb
 
week-15x
week-15xweek-15x
week-15x
 
Sqlcheetsheet
SqlcheetsheetSqlcheetsheet
Sqlcheetsheet
 
Easy Blogging With Emacs -- Cheatsheet
Easy Blogging With Emacs -- CheatsheetEasy Blogging With Emacs -- Cheatsheet
Easy Blogging With Emacs -- Cheatsheet
 
2 3. standard io
2 3. standard io2 3. standard io
2 3. standard io
 
The solution manual of c by robin
The solution manual of c by robinThe solution manual of c by robin
The solution manual of c by robin
 
#2
#2#2
#2
 
14. CodeIgniter adaugarea inregistrarilor
14. CodeIgniter adaugarea inregistrarilor14. CodeIgniter adaugarea inregistrarilor
14. CodeIgniter adaugarea inregistrarilor
 
DataStructures notes
DataStructures notesDataStructures notes
DataStructures notes
 
Include
IncludeInclude
Include
 
11 1 포인터
11 1 포인터11 1 포인터
11 1 포인터
 
Static and dynamic scoping
Static and dynamic scopingStatic and dynamic scoping
Static and dynamic scoping
 

Viewers also liked

Birmingham Health & Wellbeing Board Summit - July 2012
Birmingham Health & Wellbeing Board Summit - July 2012Birmingham Health & Wellbeing Board Summit - July 2012
Birmingham Health & Wellbeing Board Summit - July 2012
BHWBB
 
Castle Vale Health and Wellbeing Board Presentation
Castle Vale Health and Wellbeing Board PresentationCastle Vale Health and Wellbeing Board Presentation
Castle Vale Health and Wellbeing Board Presentation
BHWBB
 
Public Health Transformation Workshop 1
Public Health Transformation Workshop 1 Public Health Transformation Workshop 1
Public Health Transformation Workshop 1
BHWBB
 
Community Budget Pilot Programme Presentation
Community Budget Pilot Programme PresentationCommunity Budget Pilot Programme Presentation
Community Budget Pilot Programme Presentation
BHWBB
 
โจทย์ Pbl3
โจทย์ Pbl3โจทย์ Pbl3
โจทย์ Pbl3anusong
 
Birmingham City Council - Governance arrangements
Birmingham City Council - Governance arrangementsBirmingham City Council - Governance arrangements
Birmingham City Council - Governance arrangements
BHWBB
 
Castle Vale Health Indicators and Trends
Castle Vale Health Indicators and TrendsCastle Vale Health Indicators and Trends
Castle Vale Health Indicators and Trends
BHWBB
 
West Midlands Assets Seminar nov 2012
West Midlands Assets Seminar nov 2012West Midlands Assets Seminar nov 2012
West Midlands Assets Seminar nov 2012
BHWBB
 
โจทย์ปัญหา Pbl 7.2
โจทย์ปัญหา Pbl 7.2โจทย์ปัญหา Pbl 7.2
โจทย์ปัญหา Pbl 7.2anusong
 
Sex and the City
Sex and the CitySex and the City
Sex and the City
BHWBB
 
โจทย์ปัญหา Pbl 7.2
โจทย์ปัญหา Pbl 7.2โจทย์ปัญหา Pbl 7.2
โจทย์ปัญหา Pbl 7.2anusong
 
Final Vanilla App Ppt01
Final Vanilla App Ppt01Final Vanilla App Ppt01
Final Vanilla App Ppt01
dhaval2012
 
Designing for Ownership workshop @Strelka Summerschool 2012
Designing for Ownership workshop @Strelka Summerschool 2012Designing for Ownership workshop @Strelka Summerschool 2012
Designing for Ownership workshop @Strelka Summerschool 2012michieldelange
 
Teaching Action Verbs to the Deaf
Teaching Action Verbs to the DeafTeaching Action Verbs to the Deaf
Teaching Action Verbs to the Deaf
Pallavi Kulshrestha
 
Swot analysis template
Swot analysis templateSwot analysis template
Swot analysis templatekjknave
 
Roland Berger PPT Sample
Roland Berger PPT SampleRoland Berger PPT Sample
Roland Berger PPT Samplehaigou
 

Viewers also liked (19)

Birmingham Health & Wellbeing Board Summit - July 2012
Birmingham Health & Wellbeing Board Summit - July 2012Birmingham Health & Wellbeing Board Summit - July 2012
Birmingham Health & Wellbeing Board Summit - July 2012
 
Castle Vale Health and Wellbeing Board Presentation
Castle Vale Health and Wellbeing Board PresentationCastle Vale Health and Wellbeing Board Presentation
Castle Vale Health and Wellbeing Board Presentation
 
54
5454
54
 
Attirubutes
AttirubutesAttirubutes
Attirubutes
 
Public Health Transformation Workshop 1
Public Health Transformation Workshop 1 Public Health Transformation Workshop 1
Public Health Transformation Workshop 1
 
Community Budget Pilot Programme Presentation
Community Budget Pilot Programme PresentationCommunity Budget Pilot Programme Presentation
Community Budget Pilot Programme Presentation
 
โจทย์ Pbl3
โจทย์ Pbl3โจทย์ Pbl3
โจทย์ Pbl3
 
Birmingham City Council - Governance arrangements
Birmingham City Council - Governance arrangementsBirmingham City Council - Governance arrangements
Birmingham City Council - Governance arrangements
 
Castle Vale Health Indicators and Trends
Castle Vale Health Indicators and TrendsCastle Vale Health Indicators and Trends
Castle Vale Health Indicators and Trends
 
West Midlands Assets Seminar nov 2012
West Midlands Assets Seminar nov 2012West Midlands Assets Seminar nov 2012
West Midlands Assets Seminar nov 2012
 
โจทย์ปัญหา Pbl 7.2
โจทย์ปัญหา Pbl 7.2โจทย์ปัญหา Pbl 7.2
โจทย์ปัญหา Pbl 7.2
 
Chap001
Chap001Chap001
Chap001
 
Sex and the City
Sex and the CitySex and the City
Sex and the City
 
โจทย์ปัญหา Pbl 7.2
โจทย์ปัญหา Pbl 7.2โจทย์ปัญหา Pbl 7.2
โจทย์ปัญหา Pbl 7.2
 
Final Vanilla App Ppt01
Final Vanilla App Ppt01Final Vanilla App Ppt01
Final Vanilla App Ppt01
 
Designing for Ownership workshop @Strelka Summerschool 2012
Designing for Ownership workshop @Strelka Summerschool 2012Designing for Ownership workshop @Strelka Summerschool 2012
Designing for Ownership workshop @Strelka Summerschool 2012
 
Teaching Action Verbs to the Deaf
Teaching Action Verbs to the DeafTeaching Action Verbs to the Deaf
Teaching Action Verbs to the Deaf
 
Swot analysis template
Swot analysis templateSwot analysis template
Swot analysis template
 
Roland Berger PPT Sample
Roland Berger PPT SampleRoland Berger PPT Sample
Roland Berger PPT Sample
 

Similar to โจทย์ปัญหา Pbl8.1

C basics
C basicsC basics
C basicsMSc CST
 
'C' language notes (a.p)
'C' language notes (a.p)'C' language notes (a.p)
'C' language notes (a.p)
Ashishchinu
 
The solution manual of programming in ansi by Robin
The solution manual of programming in ansi by RobinThe solution manual of programming in ansi by Robin
The solution manual of programming in ansi by Robin
Shariful Haque Robin
 
Project code for Project on Student information management system
Project code for Project on Student information management systemProject code for Project on Student information management system
Project code for Project on Student information management system
REHAN IJAZ
 
C Programming lab
C Programming labC Programming lab
C Programming lab
Vikram Nandini
 
Wildlife conservation project management adri jovin
Wildlife conservation project management  adri jovinWildlife conservation project management  adri jovin
Wildlife conservation project management adri jovin
Adri Jovin
 
Simple C programs
Simple C programsSimple C programs
Simple C programs
ab11cs001
 
C programms
C programmsC programms
C programms
Mukund Gandrakota
 
System Software/Operating Sytems lab report
System Software/Operating Sytems lab reportSystem Software/Operating Sytems lab report
System Software/Operating Sytems lab report
Vishnu K N
 
System Software /Operating System Lab Report
System Software /Operating System Lab ReportSystem Software /Operating System Lab Report
System Software /Operating System Lab Report
Vishnu K N
 
Program flowchart
Program flowchartProgram flowchart
Program flowchart
Sowri Rajan
 
Practical File of C Language
Practical File of C LanguagePractical File of C Language
Practical File of C Language
RAJWANT KAUR
 
Data structure output 1
Data structure output 1Data structure output 1
Data structure output 1
Balaji Thala
 
Functions in c
Functions in cFunctions in c
Functions in c
Innovative
 
DOS
DOSDOS
Zoo management adri jovin
Zoo management  adri jovinZoo management  adri jovin
Zoo management adri jovinAdri Jovin
 

Similar to โจทย์ปัญหา Pbl8.1 (20)

C basics
C basicsC basics
C basics
 
'C' language notes (a.p)
'C' language notes (a.p)'C' language notes (a.p)
'C' language notes (a.p)
 
The solution manual of programming in ansi by Robin
The solution manual of programming in ansi by RobinThe solution manual of programming in ansi by Robin
The solution manual of programming in ansi by Robin
 
Project code for Project on Student information management system
Project code for Project on Student information management systemProject code for Project on Student information management system
Project code for Project on Student information management system
 
Pertemuan 2 2
Pertemuan 2 2Pertemuan 2 2
Pertemuan 2 2
 
C Programming lab
C Programming labC Programming lab
C Programming lab
 
Lab loop
Lab loopLab loop
Lab loop
 
Tu1
Tu1Tu1
Tu1
 
Wildlife conservation project management adri jovin
Wildlife conservation project management  adri jovinWildlife conservation project management  adri jovin
Wildlife conservation project management adri jovin
 
Simple C programs
Simple C programsSimple C programs
Simple C programs
 
C programms
C programmsC programms
C programms
 
System Software/Operating Sytems lab report
System Software/Operating Sytems lab reportSystem Software/Operating Sytems lab report
System Software/Operating Sytems lab report
 
System Software /Operating System Lab Report
System Software /Operating System Lab ReportSystem Software /Operating System Lab Report
System Software /Operating System Lab Report
 
C lab manaual
C lab manaualC lab manaual
C lab manaual
 
Program flowchart
Program flowchartProgram flowchart
Program flowchart
 
Practical File of C Language
Practical File of C LanguagePractical File of C Language
Practical File of C Language
 
Data structure output 1
Data structure output 1Data structure output 1
Data structure output 1
 
Functions in c
Functions in cFunctions in c
Functions in c
 
DOS
DOSDOS
DOS
 
Zoo management adri jovin
Zoo management  adri jovinZoo management  adri jovin
Zoo management adri jovin
 

More from anusong

โจทย์ปัญหา8.1
โจทย์ปัญหา8.1โจทย์ปัญหา8.1
โจทย์ปัญหา8.1anusong
 
โจทย์ปัญหา Pbl 7.2
โจทย์ปัญหา Pbl 7.2โจทย์ปัญหา Pbl 7.2
โจทย์ปัญหา Pbl 7.2anusong
 
โจทย์ปัญหา Pbl 6
โจทย์ปัญหา Pbl 6โจทย์ปัญหา Pbl 6
โจทย์ปัญหา Pbl 6anusong
 
โจทย์ปัญหา Pbl5
โจทย์ปัญหา Pbl5โจทย์ปัญหา Pbl5
โจทย์ปัญหา Pbl5anusong
 
โจทย์ปัญหา Pbl4.2
โจทย์ปัญหา Pbl4.2โจทย์ปัญหา Pbl4.2
โจทย์ปัญหา Pbl4.2anusong
 
โจทย์ปัญหา Pbl 4
โจทย์ปัญหา Pbl 4โจทย์ปัญหา Pbl 4
โจทย์ปัญหา Pbl 4anusong
 

More from anusong (7)

Pbl8.2
Pbl8.2Pbl8.2
Pbl8.2
 
โจทย์ปัญหา8.1
โจทย์ปัญหา8.1โจทย์ปัญหา8.1
โจทย์ปัญหา8.1
 
โจทย์ปัญหา Pbl 7.2
โจทย์ปัญหา Pbl 7.2โจทย์ปัญหา Pbl 7.2
โจทย์ปัญหา Pbl 7.2
 
โจทย์ปัญหา Pbl 6
โจทย์ปัญหา Pbl 6โจทย์ปัญหา Pbl 6
โจทย์ปัญหา Pbl 6
 
โจทย์ปัญหา Pbl5
โจทย์ปัญหา Pbl5โจทย์ปัญหา Pbl5
โจทย์ปัญหา Pbl5
 
โจทย์ปัญหา Pbl4.2
โจทย์ปัญหา Pbl4.2โจทย์ปัญหา Pbl4.2
โจทย์ปัญหา Pbl4.2
 
โจทย์ปัญหา Pbl 4
โจทย์ปัญหา Pbl 4โจทย์ปัญหา Pbl 4
โจทย์ปัญหา Pbl 4
 

Recently uploaded

From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 

Recently uploaded (20)

From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 

โจทย์ปัญหา Pbl8.1

  • 2. PBL 8.1 1. 2. 3. - 3 10% - /
  • 3. http://kroohathaichon.w ordpress.com 3 10% #include <stdio.h>
  • 4. #include <conio.h> main() { float U1,P1,T,U2,P2,discount; char Pd1[20],name[20],Pd2[20]; printf("n Enter your namet:t"); scanf("%s",name); printf("nPd1t:t"); scanf("%s",Pd1); printf("nU1tt:t"); scanf("%f",&U1); printf("nP1tt:t"); scanf("%f",&P1); printf("n+++++++++++++++++++++++++n"); printf("nnPd2t:t"); scanf("%s",Pd2); printf("nU2tt:t"); scanf("%f",&U2); printf("nP2tt:t"); scanf("%f",&P2); T=((U1*P1)+(U2*P2));
  • 5. discount=(T*.10); printf("n+++++++++++++++++++++++++nn"); printf("Total Price ==>t:t%.2f",T); printf("n+++++++++++++++++++++++++nn"); printf("ndiscount 10% ==>t:t%.2f",discount); getch(); } 5 3-4 1-2