SlideShare a Scribd company logo
WELCOME TO DUCAT INDIA
Language | Industrial Training | Digital Marketing | Web Technology | Testing+ | Database |
Networking | Mobile Application | ERP | Graphic | Big Data | Cloud Computing
Input /
Output in C
7070905090
info@ducatindia.com
INPUT / OUTPUT IN C
The C programming language has the feature of scanf () function, which is used to take
the input by the user as per the requirement. The coders also use the printf () function
in the programs to display the program’s output.
Printf () function or Output in C programming language
The printf () is one of the most common output functions of C programming language,
which is used to send the formatted output on the screen.
Example 1:
Output in the form of string.
Output:
Explanation:
• All the valid programs must hold the main () function in the C programming
language. The execution of a particular code begins from this main () function.
• The printf () is the library function in C language, which is used to send the screen’s
output. This function can also print the string inside the quotations provided by the
user.
• The user needs to include < stdio.h> header file to use printf () function in the
particular program.
• The return statement inside the main () function provides the exit status of the
program, which is optional.
Example 2.
Output in the form of integer with the help of program.
Output:
Example 3:
Output in the form of float and double inside the program.
Output:
Example 4:
Output in the form of Character via program of C language.
Output:
Scanf () function or input by the user in C
programming language
Scanf () function is the common input function of the C programming language, which is
used to take the input from the user as per the requirement. This function can read the
formatted input from the standard input, like input given by the keyboard.
Example:
Output:
enter the number: 7
Number = 7
THANK YOU
Input /
Output in C
7070905090
info@ducatindia.com

More Related Content

What's hot (20)

PPTX
introduction to c programming language
sanjay joshi
 
PDF
Computer programming chapter ( 3 )
Ibrahim Elewah
 
PDF
C lecture notes new
Kuntal Bhowmick
 
PPTX
Std 10 computer chapter 10 introduction to c language (part1)
Nuzhat Memon
 
PPTX
Presentation on C programming language
Ashmita Tuition Center
 
PPTX
1 introduction to c programming language
Narendra Soni
 
PPT
Introduction to c_language
Way2itech
 
PPTX
Introduction to C Language
Tarun Sharma
 
PPT
270 1 c_intro_up_to_functions
ray143eddie
 
PDF
Computer programming chapter ( 4 )
Ibrahim Elewah
 
PPTX
presentation on the topic: Introduction to the C language
GautamGupta136
 
PPTX
10 lesson6
Mary Grace Uminga
 
PPT
Intro To Programming Concepts
Jussi Pohjolainen
 
PPT
Book ppt
FALLEE31188
 
PDF
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
Batra Centre
 
PPTX
Intro to cprogramming
skashwin98
 
PDF
Abc c program
Dayakar Siddula
 
PPT
C introduction
Kamran
 
PPT
C# Introduction brief
Prasanna Kumar SM
 
introduction to c programming language
sanjay joshi
 
Computer programming chapter ( 3 )
Ibrahim Elewah
 
C lecture notes new
Kuntal Bhowmick
 
Std 10 computer chapter 10 introduction to c language (part1)
Nuzhat Memon
 
Presentation on C programming language
Ashmita Tuition Center
 
1 introduction to c programming language
Narendra Soni
 
Introduction to c_language
Way2itech
 
Introduction to C Language
Tarun Sharma
 
270 1 c_intro_up_to_functions
ray143eddie
 
Computer programming chapter ( 4 )
Ibrahim Elewah
 
presentation on the topic: Introduction to the C language
GautamGupta136
 
10 lesson6
Mary Grace Uminga
 
Intro To Programming Concepts
Jussi Pohjolainen
 
Book ppt
FALLEE31188
 
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
Batra Centre
 
Intro to cprogramming
skashwin98
 
Abc c program
Dayakar Siddula
 
C introduction
Kamran
 
C# Introduction brief
Prasanna Kumar SM
 

Similar to Input output in c (20)

PPTX
Building Simple C Program
JeraldPastorCejas
 
PPTX
Input output statement
sunilchute1
 
PPT
CInputOutput.ppt
mohammadsajidansari4
 
PPT
Lecture 8- Data Input and Output
Md. Imran Hossain Showrov
 
PDF
3. input output instruction in c programming by digital wave
RahulSharma4566
 
PPTX
1_Introduction of programming language C.pptx
b221382
 
PPTX
COM1407: Input/ Output Functions
Hemantha Kulathilake
 
PPTX
20220823094225_PPT02-Formatted Input and Output.pptx
putrielisabeth3
 
PPTX
2.1 input and output in c
Jawad Khan
 
PPTX
Managing input and output operation in c
yazad dumasia
 
PPTX
Input output statement in C
Muthuganesh S
 
PPTX
Introduction to C Unit 1
Dr. SURBHI SAROHA
 
PPT
Fundamental of C Programming Language and Basic Input/Output Function
imtiazalijoono
 
PPTX
C language
TaranjeetKaur72
 
PDF
3_Input_output.pdf this is about orogramminy
sumiyaahmedachol
 
PPTX
CHAPTER 4
mohd_mizan
 
PPTX
Presention programming
saleha iqbal
 
PPTX
C programming(part 3)
Dr. SURBHI SAROHA
 
PDF
Module 1_Chapter 2_PPT (1)sasaddsdsds.pdf
anilcsbs
 
PPTX
C basics
thirumalaikumar3
 
Building Simple C Program
JeraldPastorCejas
 
Input output statement
sunilchute1
 
CInputOutput.ppt
mohammadsajidansari4
 
Lecture 8- Data Input and Output
Md. Imran Hossain Showrov
 
3. input output instruction in c programming by digital wave
RahulSharma4566
 
1_Introduction of programming language C.pptx
b221382
 
COM1407: Input/ Output Functions
Hemantha Kulathilake
 
20220823094225_PPT02-Formatted Input and Output.pptx
putrielisabeth3
 
2.1 input and output in c
Jawad Khan
 
Managing input and output operation in c
yazad dumasia
 
Input output statement in C
Muthuganesh S
 
Introduction to C Unit 1
Dr. SURBHI SAROHA
 
Fundamental of C Programming Language and Basic Input/Output Function
imtiazalijoono
 
C language
TaranjeetKaur72
 
3_Input_output.pdf this is about orogramminy
sumiyaahmedachol
 
CHAPTER 4
mohd_mizan
 
Presention programming
saleha iqbal
 
C programming(part 3)
Dr. SURBHI SAROHA
 
Module 1_Chapter 2_PPT (1)sasaddsdsds.pdf
anilcsbs
 
Ad

More from Ducat (20)

PPTX
Dot net training institute
Ducat
 
PPTX
Mis certification
Ducat
 
PDF
Devops certification
Ducat
 
PDF
Best ethical hacking course online
Ducat
 
PPTX
React js training course in noida
Ducat
 
PPTX
Java for beginners
Ducat
 
PPTX
Benfits of python
Ducat
 
PPTX
Interactive reports development
Ducat
 
PPTX
Abap report
Ducat
 
PPTX
Sap abap database table
Ducat
 
PPTX
Sap s4 hana saps next generation business suite
Ducat
 
PPTX
Connect dashboard designer
Ducat
 
PPTX
Major components of sap hana
Ducat
 
PPTX
Schema in sap hana
Ducat
 
PPTX
Sap hana attribute view
Ducat
 
PPTX
Sap hana studio administration console
Ducat
 
PPTX
What is ebs
Ducat
 
PPTX
Introduction to mern
Ducat
 
PPTX
Selenium tutorials
Ducat
 
PPTX
Waits alerts and switch windows
Ducat
 
Dot net training institute
Ducat
 
Mis certification
Ducat
 
Devops certification
Ducat
 
Best ethical hacking course online
Ducat
 
React js training course in noida
Ducat
 
Java for beginners
Ducat
 
Benfits of python
Ducat
 
Interactive reports development
Ducat
 
Abap report
Ducat
 
Sap abap database table
Ducat
 
Sap s4 hana saps next generation business suite
Ducat
 
Connect dashboard designer
Ducat
 
Major components of sap hana
Ducat
 
Schema in sap hana
Ducat
 
Sap hana attribute view
Ducat
 
Sap hana studio administration console
Ducat
 
What is ebs
Ducat
 
Introduction to mern
Ducat
 
Selenium tutorials
Ducat
 
Waits alerts and switch windows
Ducat
 
Ad

Recently uploaded (20)

PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PDF
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PPTX
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PDF
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PPTX
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
PPTX
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PPTX
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 

Input output in c

  • 1. WELCOME TO DUCAT INDIA Language | Industrial Training | Digital Marketing | Web Technology | Testing+ | Database | Networking | Mobile Application | ERP | Graphic | Big Data | Cloud Computing Input / Output in C 7070905090 [email protected]
  • 2. INPUT / OUTPUT IN C The C programming language has the feature of scanf () function, which is used to take the input by the user as per the requirement. The coders also use the printf () function in the programs to display the program’s output. Printf () function or Output in C programming language The printf () is one of the most common output functions of C programming language, which is used to send the formatted output on the screen. Example 1: Output in the form of string. Output:
  • 3. Explanation: • All the valid programs must hold the main () function in the C programming language. The execution of a particular code begins from this main () function. • The printf () is the library function in C language, which is used to send the screen’s output. This function can also print the string inside the quotations provided by the user. • The user needs to include < stdio.h> header file to use printf () function in the particular program. • The return statement inside the main () function provides the exit status of the program, which is optional. Example 2. Output in the form of integer with the help of program. Output:
  • 4. Example 3: Output in the form of float and double inside the program. Output:
  • 5. Example 4: Output in the form of Character via program of C language. Output:
  • 6. Scanf () function or input by the user in C programming language Scanf () function is the common input function of the C programming language, which is used to take the input from the user as per the requirement. This function can read the formatted input from the standard input, like input given by the keyboard. Example: Output: enter the number: 7 Number = 7