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);
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”);