SlideShare a Scribd company logo
1 of 11
C IN PROGRAMING AND ITS
APPLICATION
BY
M.SC.(MATHEMATICS):- 4TH SEMESTER
DEPARM.SC.(MATHEMATICS):- 4TH SEMESTER
DEPARTMENT OF MATHEMATICS
R.N. COLLEGE, HAJIPUR (VAISHALI)
( B.R.A. BIHAR UNIVERSITY,(MUZAFFARPUR)
(VAISHALI)
( B.R.A. BIHAR UNIVERSITY, MUZAFFARPUR
SONU KUMAR
OVERVIEWS
 About programming in c
 Variable
 Function of printf
 Function of scanf
 Switch statement syntax
Switch flowchart
 Demonstration in c
 Some program
C PROGRAMING:- It is a programung language
developed at AT and T Bell labs USA, in 1973 by “Denish
Ritchie”
Programming language : - It is a problem solving scheme,
there are several programing Language today same are c,
c++,java, phython, …………etc
:- It is a named location of memory. It has capacity to store data
and its Value can be change during program execution.
Variable declaration Syntax
<data type> <variable name>
As, int num;
How to initialize a variable
<darta type> <variable name>= value;
Example:-
int n1,n2,res, choice;
Function printf() : - We have used it display on the Screen the value contain.
The general form of printf() function is:-
Printf (“<format string>”, <list of variable>)
Example:-
printf(“ Enter two Value”);
 scanf function is a must & is an address of operator. It gives
the location number used by the variable in memory. When we
used “%d”, we are telling scanf(“%d”) at Which memory location
should it store the value.
Example:-
scanf(“%d %d”, &n1,&n2);
Switch( )
{
Case 1;
Stetement 1 ;
Break ;
}
As so on………….
default
}
{
Stetement 1 ;
Case
1;
switch
defualt
Case
2;
Case
2;
Stop
NO
NO
NO
YES
YES
YES
YES
res = n1+n2;
res = n1/n2;
res = n1-n2;
“invalid choice”
#include<stdio.h>
or
#include.”stdio.h”
#include<conio.h>
or
#include.”conio.h”
If we use #include <stdio.h> in c
program it will stdio.h file into
our source program releted
function
It is used to include the console
input output library function,
the getch () function is defined
in conio.h file.
Void main ( )
The main ( ) function is the
entry point of every program in
c language.
Enter two values
1 = add
2 = sub
3 = multi..
4 = divi….
what you want……..?
#include<stdio.h>
#include<conio.h>
void main ()
{
int n1,n2,res,choice;
printf(“enter two values”):
scanf(“%d %d , &n1,&n2”);
printf(“1 – add/n”);
printf(“2 – add/n”);
printf(“3 – add/n”);
printf(“4 – add/n”);
PROGRAMMING IN C.pptx

More Related Content

Similar to PROGRAMMING IN C.pptx

Fundamental of C Programming Language and Basic Input/Output Function
  Fundamental of C Programming Language and Basic Input/Output Function  Fundamental of C Programming Language and Basic Input/Output Function
Fundamental of C Programming Language and Basic Input/Output Functionimtiazalijoono
 
Basic structure of c programming
Basic structure of c programmingBasic structure of c programming
Basic structure of c programmingTejaswiB4
 
Basic structure of c programming
Basic structure of c programmingBasic structure of c programming
Basic structure of c programmingTejaswiB4
 
cmp104 lec 8
cmp104 lec 8cmp104 lec 8
cmp104 lec 8kapil078
 
Chapter3
Chapter3Chapter3
Chapter3Kamran
 
Lec 02. C Program Structure / C Memory Concept
Lec 02. C Program Structure / C Memory ConceptLec 02. C Program Structure / C Memory Concept
Lec 02. C Program Structure / C Memory ConceptRushdi Shams
 
Unit1 jwfiles
Unit1 jwfilesUnit1 jwfiles
Unit1 jwfilesmrecedu
 
1584503386 1st chap
1584503386 1st chap1584503386 1st chap
1584503386 1st chapthuhiendtk4
 
C basics 4 std11(GujBoard)
C basics 4 std11(GujBoard)C basics 4 std11(GujBoard)
C basics 4 std11(GujBoard)indrasir
 
C notes diploma-ee-3rd-sem
C notes diploma-ee-3rd-semC notes diploma-ee-3rd-sem
C notes diploma-ee-3rd-semKavita Dagar
 
Fundamentals of computer programming by Dr. A. Charan Kumari
Fundamentals of computer programming by Dr. A. Charan KumariFundamentals of computer programming by Dr. A. Charan Kumari
Fundamentals of computer programming by Dr. A. Charan KumariTHE NORTHCAP UNIVERSITY
 
IIM.Com-FIT-Unit2(14.9.2021 TO 30.9.2021).pptx
IIM.Com-FIT-Unit2(14.9.2021 TO 30.9.2021).pptxIIM.Com-FIT-Unit2(14.9.2021 TO 30.9.2021).pptx
IIM.Com-FIT-Unit2(14.9.2021 TO 30.9.2021).pptxrajkumar490591
 
Basics of c Nisarg Patel
Basics of c Nisarg PatelBasics of c Nisarg Patel
Basics of c Nisarg PatelTechNGyan
 

Similar to PROGRAMMING IN C.pptx (20)

Fundamental of C Programming Language and Basic Input/Output Function
  Fundamental of C Programming Language and Basic Input/Output Function  Fundamental of C Programming Language and Basic Input/Output Function
Fundamental of C Programming Language and Basic Input/Output Function
 
Basic structure of c programming
Basic structure of c programmingBasic structure of c programming
Basic structure of c programming
 
Basic structure of c programming
Basic structure of c programmingBasic structure of c programming
Basic structure of c programming
 
C Language Unit-1
C Language Unit-1C Language Unit-1
C Language Unit-1
 
cmp104 lec 8
cmp104 lec 8cmp104 lec 8
cmp104 lec 8
 
Chapter3
Chapter3Chapter3
Chapter3
 
Programming in C
Programming in CProgramming in C
Programming in C
 
Lec 02. C Program Structure / C Memory Concept
Lec 02. C Program Structure / C Memory ConceptLec 02. C Program Structure / C Memory Concept
Lec 02. C Program Structure / C Memory Concept
 
Unit1 jwfiles
Unit1 jwfilesUnit1 jwfiles
Unit1 jwfiles
 
Preprocessors
PreprocessorsPreprocessors
Preprocessors
 
1584503386 1st chap
1584503386 1st chap1584503386 1st chap
1584503386 1st chap
 
C basics 4 std11(GujBoard)
C basics 4 std11(GujBoard)C basics 4 std11(GujBoard)
C basics 4 std11(GujBoard)
 
C programming
C programmingC programming
C programming
 
qb unit2 solve eem201.pdf
qb unit2 solve eem201.pdfqb unit2 solve eem201.pdf
qb unit2 solve eem201.pdf
 
7 functions
7  functions7  functions
7 functions
 
C notes diploma-ee-3rd-sem
C notes diploma-ee-3rd-semC notes diploma-ee-3rd-sem
C notes diploma-ee-3rd-sem
 
Fundamentals of computer programming by Dr. A. Charan Kumari
Fundamentals of computer programming by Dr. A. Charan KumariFundamentals of computer programming by Dr. A. Charan Kumari
Fundamentals of computer programming by Dr. A. Charan Kumari
 
IIM.Com-FIT-Unit2(14.9.2021 TO 30.9.2021).pptx
IIM.Com-FIT-Unit2(14.9.2021 TO 30.9.2021).pptxIIM.Com-FIT-Unit2(14.9.2021 TO 30.9.2021).pptx
IIM.Com-FIT-Unit2(14.9.2021 TO 30.9.2021).pptx
 
Basics of c Nisarg Patel
Basics of c Nisarg PatelBasics of c Nisarg Patel
Basics of c Nisarg Patel
 
venkatesh.pptx
venkatesh.pptxvenkatesh.pptx
venkatesh.pptx
 

More from SONU KUMAR

GROUP AND SUBGROUP PPT 20By SONU KUMAR.pptx
GROUP AND SUBGROUP PPT 20By SONU KUMAR.pptxGROUP AND SUBGROUP PPT 20By SONU KUMAR.pptx
GROUP AND SUBGROUP PPT 20By SONU KUMAR.pptxSONU KUMAR
 
SOME IMPORTANT TOPICS OF GROUP THEORY IN MODERN by Sonukumar .pptx
SOME IMPORTANT TOPICS OF GROUP THEORY IN MODERN by Sonukumar .pptx SOME IMPORTANT TOPICS OF GROUP THEORY IN MODERN by Sonukumar .pptx
SOME IMPORTANT TOPICS OF GROUP THEORY IN MODERN by Sonukumar .pptx SONU KUMAR
 
Application of C language by Sonu kumar.pptx
Application of C language  by Sonu kumar.pptxApplication of C language  by Sonu kumar.pptx
Application of C language by Sonu kumar.pptxSONU KUMAR
 
Programming in C by SONU KUMAR.pptx
Programming in C by SONU KUMAR.pptxProgramming in C by SONU KUMAR.pptx
Programming in C by SONU KUMAR.pptxSONU KUMAR
 
SOME IMPORTANT TOPICS OF GROUP THEORY IN MODERN-1.pptx
SOME IMPORTANT TOPICS OF GROUP THEORY IN MODERN-1.pptxSOME IMPORTANT TOPICS OF GROUP THEORY IN MODERN-1.pptx
SOME IMPORTANT TOPICS OF GROUP THEORY IN MODERN-1.pptxSONU KUMAR
 
NUMBER THEORY BY SONU KUMAR.pptx
NUMBER THEORY  BY SONU KUMAR.pptxNUMBER THEORY  BY SONU KUMAR.pptx
NUMBER THEORY BY SONU KUMAR.pptxSONU KUMAR
 
NATIONAL MATHEMATICS DAY BY SONU KUMAR.pptx 123.pptx
NATIONAL MATHEMATICS DAY BY SONU KUMAR.pptx 123.pptxNATIONAL MATHEMATICS DAY BY SONU KUMAR.pptx 123.pptx
NATIONAL MATHEMATICS DAY BY SONU KUMAR.pptx 123.pptxSONU KUMAR
 
GROUP THEORY PPT,SUBGROUP, ABELIAN GROUP,
GROUP THEORY PPT,SUBGROUP, ABELIAN GROUP, GROUP THEORY PPT,SUBGROUP, ABELIAN GROUP,
GROUP THEORY PPT,SUBGROUP, ABELIAN GROUP, SONU KUMAR
 
SET THEORY AND THEIR APLICATION
SET THEORY AND THEIR APLICATIONSET THEORY AND THEIR APLICATION
SET THEORY AND THEIR APLICATIONSONU KUMAR
 
GROUP, SUBGROUP, ABELIAN GROUP, NORMAL SUBGROUP, CONJUGATE NUMBER,NORMALIZER ...
GROUP, SUBGROUP, ABELIAN GROUP, NORMAL SUBGROUP, CONJUGATE NUMBER,NORMALIZER ...GROUP, SUBGROUP, ABELIAN GROUP, NORMAL SUBGROUP, CONJUGATE NUMBER,NORMALIZER ...
GROUP, SUBGROUP, ABELIAN GROUP, NORMAL SUBGROUP, CONJUGATE NUMBER,NORMALIZER ...SONU KUMAR
 

More from SONU KUMAR (10)

GROUP AND SUBGROUP PPT 20By SONU KUMAR.pptx
GROUP AND SUBGROUP PPT 20By SONU KUMAR.pptxGROUP AND SUBGROUP PPT 20By SONU KUMAR.pptx
GROUP AND SUBGROUP PPT 20By SONU KUMAR.pptx
 
SOME IMPORTANT TOPICS OF GROUP THEORY IN MODERN by Sonukumar .pptx
SOME IMPORTANT TOPICS OF GROUP THEORY IN MODERN by Sonukumar .pptx SOME IMPORTANT TOPICS OF GROUP THEORY IN MODERN by Sonukumar .pptx
SOME IMPORTANT TOPICS OF GROUP THEORY IN MODERN by Sonukumar .pptx
 
Application of C language by Sonu kumar.pptx
Application of C language  by Sonu kumar.pptxApplication of C language  by Sonu kumar.pptx
Application of C language by Sonu kumar.pptx
 
Programming in C by SONU KUMAR.pptx
Programming in C by SONU KUMAR.pptxProgramming in C by SONU KUMAR.pptx
Programming in C by SONU KUMAR.pptx
 
SOME IMPORTANT TOPICS OF GROUP THEORY IN MODERN-1.pptx
SOME IMPORTANT TOPICS OF GROUP THEORY IN MODERN-1.pptxSOME IMPORTANT TOPICS OF GROUP THEORY IN MODERN-1.pptx
SOME IMPORTANT TOPICS OF GROUP THEORY IN MODERN-1.pptx
 
NUMBER THEORY BY SONU KUMAR.pptx
NUMBER THEORY  BY SONU KUMAR.pptxNUMBER THEORY  BY SONU KUMAR.pptx
NUMBER THEORY BY SONU KUMAR.pptx
 
NATIONAL MATHEMATICS DAY BY SONU KUMAR.pptx 123.pptx
NATIONAL MATHEMATICS DAY BY SONU KUMAR.pptx 123.pptxNATIONAL MATHEMATICS DAY BY SONU KUMAR.pptx 123.pptx
NATIONAL MATHEMATICS DAY BY SONU KUMAR.pptx 123.pptx
 
GROUP THEORY PPT,SUBGROUP, ABELIAN GROUP,
GROUP THEORY PPT,SUBGROUP, ABELIAN GROUP, GROUP THEORY PPT,SUBGROUP, ABELIAN GROUP,
GROUP THEORY PPT,SUBGROUP, ABELIAN GROUP,
 
SET THEORY AND THEIR APLICATION
SET THEORY AND THEIR APLICATIONSET THEORY AND THEIR APLICATION
SET THEORY AND THEIR APLICATION
 
GROUP, SUBGROUP, ABELIAN GROUP, NORMAL SUBGROUP, CONJUGATE NUMBER,NORMALIZER ...
GROUP, SUBGROUP, ABELIAN GROUP, NORMAL SUBGROUP, CONJUGATE NUMBER,NORMALIZER ...GROUP, SUBGROUP, ABELIAN GROUP, NORMAL SUBGROUP, CONJUGATE NUMBER,NORMALIZER ...
GROUP, SUBGROUP, ABELIAN GROUP, NORMAL SUBGROUP, CONJUGATE NUMBER,NORMALIZER ...
 

Recently uploaded

Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
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
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
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
 

Recently uploaded (20)

Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
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
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.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
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
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
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 

PROGRAMMING IN C.pptx

  • 1. C IN PROGRAMING AND ITS APPLICATION BY M.SC.(MATHEMATICS):- 4TH SEMESTER DEPARM.SC.(MATHEMATICS):- 4TH SEMESTER DEPARTMENT OF MATHEMATICS R.N. COLLEGE, HAJIPUR (VAISHALI) ( B.R.A. BIHAR UNIVERSITY,(MUZAFFARPUR) (VAISHALI) ( B.R.A. BIHAR UNIVERSITY, MUZAFFARPUR SONU KUMAR
  • 2. OVERVIEWS  About programming in c  Variable  Function of printf  Function of scanf  Switch statement syntax Switch flowchart  Demonstration in c  Some program
  • 3. C PROGRAMING:- It is a programung language developed at AT and T Bell labs USA, in 1973 by “Denish Ritchie” Programming language : - It is a problem solving scheme, there are several programing Language today same are c, c++,java, phython, …………etc
  • 4. :- It is a named location of memory. It has capacity to store data and its Value can be change during program execution. Variable declaration Syntax <data type> <variable name> As, int num; How to initialize a variable <darta type> <variable name>= value; Example:- int n1,n2,res, choice;
  • 5. Function printf() : - We have used it display on the Screen the value contain. The general form of printf() function is:- Printf (“<format string>”, <list of variable>) Example:- printf(“ Enter two Value”);
  • 6.  scanf function is a must & is an address of operator. It gives the location number used by the variable in memory. When we used “%d”, we are telling scanf(“%d”) at Which memory location should it store the value. Example:- scanf(“%d %d”, &n1,&n2);
  • 7. Switch( ) { Case 1; Stetement 1 ; Break ; } As so on…………. default } { Stetement 1 ;
  • 9. #include<stdio.h> or #include.”stdio.h” #include<conio.h> or #include.”conio.h” If we use #include <stdio.h> in c program it will stdio.h file into our source program releted function It is used to include the console input output library function, the getch () function is defined in conio.h file. Void main ( ) The main ( ) function is the entry point of every program in c language.
  • 10. Enter two values 1 = add 2 = sub 3 = multi.. 4 = divi…. what you want……..? #include<stdio.h> #include<conio.h> void main () { int n1,n2,res,choice; printf(“enter two values”): scanf(“%d %d , &n1,&n2”); printf(“1 – add/n”); printf(“2 – add/n”); printf(“3 – add/n”); printf(“4 – add/n”);