SlideShare a Scribd company logo
Lab Report
Computer Applications and Programming (sessional)-3701
.
Submitted by:-
Name:- Mahbubay Rabbani
ID:-175035
Semester & Year:-3/1
Department:-TE
Submitted to:-
Md.Khawja Imran Masud
Lecturer
Department of CSE
Dhaka University of Engineering & Technology (DUET), Gazipur
Report No.:-01
Report Name:-Introduction to C programming.
Lab Date:-14.03.2021
Date of submission:-21.03.2021
Theory
C is a programming language which is also called the mother of all programming
languages. This programming language is developed by Dennis Ritchie in 1972.C is
structured and more popular programming language. It contains only 32 keywords
and it also capable of quick running.
Like of all languages, C has a basic syntax.
1. Tokens:-It is a syntax part of C language.
Token is either a keyword, an identifier, a string, a constant or a symbol. They are
explained in the following.
Keyword:-It is a reserved word and expressed by small letter.There are 32
keywords. But we can not use them as variable name, constant name etc.
Identifier:-identifier is a name which is used for identifying any variables or
functions. It can be expressed by capital or small letters or mix with underscore and
numbers. But it can’t allow the special symbols (@, $, %).
String is statement with both sides inverted comma symbol.
Constant is a variable which has fixed value.
Variables is a quantity in which the data types are stored.
There are 5 data types:-
i. Integer
ii. Floating Point
iii. Character
iv. Double floating point
v. Void
They are expressed as int, float, char, double, void respectively.
2. Semicolons:- It is an another part of C syntax. It is the symbol which terminates
the statement in a program and used in every program.
3. Comments:- Comments are like helping text which are ignored by a Complier.
they are started with /* and ended with */
Program
1. Hello world program with introduction
Input:-
/*Hello world program with my introduction. */
#include<stdio.h>
int main()
{
printf("Hello World!n");
printf("I am Mahbubay Rabbani from DUETn");
printf("I am a student of department of TEn");
printf("My ID is 175035n");
printf("My home district is Gaibandha which belongs to Rangpur divisionn");
return 0;
}
Output:-
2.Program about Summation of two numbers.
Input:-
/*Now I write a program about
the summation of two numbers*/
#include<stdio.h>
int main()
{
int a, b, result; /*a,b denote the input numbers*/
printf("The first number is=");
scanf("%d",&a);
printf("The second number is=");
scanf("%d",&b);
result=a+b;
printf("The summation of the numbers is=%d",result);
return 0;
}
Output:-
Task:- Write a C program by taking two inputs from keyboard and display the
summation, subtraction, multiplication of them.
Input:-
/*Now I write a program about
the summation,subtraction and multiplication of two numbers*/
#include<stdio.h>
int main()
{
int a, b, result; /*a,b denote the input numbers*/
printf("The first number is=");
scanf("%d",&a);
printf("The second number is=");
scanf("%d",&b);
result=a+b;
printf("The summation of the numbers is=%dn",result);
result=a-b;
printf("The subtraction of the numbers is=%dn",result);
result=a*b;
printf("The multiplication of the numbers is=%d",result);
return 0;
}
Output:-
Conclusion:- From this report I know about the fundamental concept of C
programming and also know how programming languages work for summation,
subtraction and multiplication. I think this report is very fruitful and helps in my
practical life.

More Related Content

What's hot

Visual Basic Source Codes for Class 11 HSc Paper 1 Practicals
Visual Basic Source Codes for Class 11 HSc Paper 1 PracticalsVisual Basic Source Codes for Class 11 HSc Paper 1 Practicals
Visual Basic Source Codes for Class 11 HSc Paper 1 Practicals
Aditi Bhushan
 
Assignment11
Assignment11Assignment11
Assignment11
Sunita Milind Dol
 
Compiler design-lab-manual v-cse
Compiler design-lab-manual v-cseCompiler design-lab-manual v-cse
Compiler design-lab-manual v-cse
ravisharma159932
 
Introduction to computer_lec_04
Introduction to computer_lec_04Introduction to computer_lec_04
Introduction to computer_lec_04
Ramadan Babers, PhD
 
Mca 104
Mca 104Mca 104
Mca 104
smumbahelp
 
C programming Tutorial Session 1
C programming Tutorial Session 1C programming Tutorial Session 1
C programming Tutorial Session 1
Muhammad Ehtisham Siddiqui
 
Handout#05
Handout#05Handout#05
Handout#05
Sunita Milind Dol
 
Problem solving methodology
Problem solving methodologyProblem solving methodology
Problem solving methodology
Prof. Dr. K. Adisesha
 
C Programming Lab manual 18CPL17
C Programming Lab manual 18CPL17C Programming Lab manual 18CPL17
C Programming Lab manual 18CPL17
manjurkts
 
exercise-week-2-core-c-progr
exercise-week-2-core-c-progrexercise-week-2-core-c-progr
exercise-week-2-core-c-progr
Chi Lam
 
First draft programming c++
First draft programming c++First draft programming c++
First draft programming c++
藝輝 王
 
Principles of object oriented programing
Principles of object oriented programingPrinciples of object oriented programing
Principles of object oriented programing
Ahammed Alamin
 
2012 bcsl-021 solve assihnment
2012 bcsl-021 solve assihnment2012 bcsl-021 solve assihnment
2012 bcsl-021 solve assihnment
Indira Gnadhi National Open University (IGNOU)
 
Graphical programming
Graphical programmingGraphical programming
Graphical programming
Bilal Maqbool ツ
 
Dev Concepts: Math Concepts in Programming
Dev Concepts: Math Concepts in ProgrammingDev Concepts: Math Concepts in Programming
Dev Concepts: Math Concepts in Programming
Svetlin Nakov
 
Assignment 2
Assignment 2Assignment 2
Assignment 2
usman mehmood
 
Oop lab assignment 01
Oop lab assignment 01Oop lab assignment 01
Oop lab assignment 01
Drjilesh
 
Assignment1
Assignment1Assignment1
Assignment1
Sunita Milind Dol
 
Fy secondsemester2016
Fy secondsemester2016Fy secondsemester2016
Fy secondsemester2016
Ankit Dubey
 
Fy secondsemester2016
Fy secondsemester2016Fy secondsemester2016
Fy secondsemester2016
Ankit Dubey
 

What's hot (20)

Visual Basic Source Codes for Class 11 HSc Paper 1 Practicals
Visual Basic Source Codes for Class 11 HSc Paper 1 PracticalsVisual Basic Source Codes for Class 11 HSc Paper 1 Practicals
Visual Basic Source Codes for Class 11 HSc Paper 1 Practicals
 
Assignment11
Assignment11Assignment11
Assignment11
 
Compiler design-lab-manual v-cse
Compiler design-lab-manual v-cseCompiler design-lab-manual v-cse
Compiler design-lab-manual v-cse
 
Introduction to computer_lec_04
Introduction to computer_lec_04Introduction to computer_lec_04
Introduction to computer_lec_04
 
Mca 104
Mca 104Mca 104
Mca 104
 
C programming Tutorial Session 1
C programming Tutorial Session 1C programming Tutorial Session 1
C programming Tutorial Session 1
 
Handout#05
Handout#05Handout#05
Handout#05
 
Problem solving methodology
Problem solving methodologyProblem solving methodology
Problem solving methodology
 
C Programming Lab manual 18CPL17
C Programming Lab manual 18CPL17C Programming Lab manual 18CPL17
C Programming Lab manual 18CPL17
 
exercise-week-2-core-c-progr
exercise-week-2-core-c-progrexercise-week-2-core-c-progr
exercise-week-2-core-c-progr
 
First draft programming c++
First draft programming c++First draft programming c++
First draft programming c++
 
Principles of object oriented programing
Principles of object oriented programingPrinciples of object oriented programing
Principles of object oriented programing
 
2012 bcsl-021 solve assihnment
2012 bcsl-021 solve assihnment2012 bcsl-021 solve assihnment
2012 bcsl-021 solve assihnment
 
Graphical programming
Graphical programmingGraphical programming
Graphical programming
 
Dev Concepts: Math Concepts in Programming
Dev Concepts: Math Concepts in ProgrammingDev Concepts: Math Concepts in Programming
Dev Concepts: Math Concepts in Programming
 
Assignment 2
Assignment 2Assignment 2
Assignment 2
 
Oop lab assignment 01
Oop lab assignment 01Oop lab assignment 01
Oop lab assignment 01
 
Assignment1
Assignment1Assignment1
Assignment1
 
Fy secondsemester2016
Fy secondsemester2016Fy secondsemester2016
Fy secondsemester2016
 
Fy secondsemester2016
Fy secondsemester2016Fy secondsemester2016
Fy secondsemester2016
 

Similar to 175035 cse lab 01

Programming C Part 01
Programming C Part 01 Programming C Part 01
Programming C Part 01
Raselmondalmehedi
 
C programme presentation
C programme presentationC programme presentation
C programme presentation
DharmaKumariBhandari
 
CS3251-_PIC
CS3251-_PICCS3251-_PIC
10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz
Shahbaz Ahmad
 
Learn C Programming Full Course Free
Learn C Programming Full Course FreeLearn C Programming Full Course Free
Learn C Programming Full Course Free
Dheeraj Patidar
 
Programming.pptx
Programming.pptxProgramming.pptx
Programming.pptx
JharnaSahane
 
Notes of c programming 1st unit BCA I SEM
Notes of c programming  1st unit BCA I SEMNotes of c programming  1st unit BCA I SEM
Notes of c programming 1st unit BCA I SEM
Mansi Tyagi
 
Overview of C Mrs Sowmya Jyothi
Overview of C Mrs Sowmya JyothiOverview of C Mrs Sowmya Jyothi
Overview of C Mrs Sowmya Jyothi
Sowmya Jyothi
 
C AND DATASTRUCTURES PREPARED BY M V B REDDY
C AND DATASTRUCTURES PREPARED BY M V B REDDYC AND DATASTRUCTURES PREPARED BY M V B REDDY
C AND DATASTRUCTURES PREPARED BY M V B REDDY
Malikireddy Bramhananda Reddy
 
C notes by m v b reddy(gitam)imp notes all units notes 5 unit order
C notes by m v b  reddy(gitam)imp  notes  all units notes  5 unit orderC notes by m v b  reddy(gitam)imp  notes  all units notes  5 unit order
C notes by m v b reddy(gitam)imp notes all units notes 5 unit order
Malikireddy Bramhananda Reddy
 
C Programming Unit-1
C Programming Unit-1C Programming Unit-1
C Programming Unit-1
Vikram Nandini
 
naveeth ppt py.pptx
naveeth ppt py.pptxnaveeth ppt py.pptx
naveeth ppt py.pptx
Fayazx2xlevi
 
Fundamentals of Data Structures Unit 1.pptx
Fundamentals of Data Structures Unit 1.pptxFundamentals of Data Structures Unit 1.pptx
Fundamentals of Data Structures Unit 1.pptx
Vigneshkumar Ponnusamy
 
An introduction to programming
An introduction to programmingAn introduction to programming
An introduction to programming
rprajat007
 
TCS-NQT-Coding-Questions-@-Recruitmentindia.in_.pdf
TCS-NQT-Coding-Questions-@-Recruitmentindia.in_.pdfTCS-NQT-Coding-Questions-@-Recruitmentindia.in_.pdf
TCS-NQT-Coding-Questions-@-Recruitmentindia.in_.pdf
AbhishekMGowda4
 
C programming slide day 01 uploadd by md abdullah al shakil
C programming slide day 01 uploadd by md abdullah al shakilC programming slide day 01 uploadd by md abdullah al shakil
C programming slide day 01 uploadd by md abdullah al shakil
Zenith SVG
 
C language introduction geeksfor geeks
C language introduction   geeksfor geeksC language introduction   geeksfor geeks
C language introduction geeksfor geeks
AashutoshChhedavi
 
C programing for BCA Sem 1. JJ College
C programing for BCA Sem 1. JJ CollegeC programing for BCA Sem 1. JJ College
C programing for BCA Sem 1. JJ College
MUNNAKUMAR89
 
C program
C programC program
C program
Shaik JaniBasha
 
Programming in c
Programming in cProgramming in c
Programming in c
ankitjain851
 

Similar to 175035 cse lab 01 (20)

Programming C Part 01
Programming C Part 01 Programming C Part 01
Programming C Part 01
 
C programme presentation
C programme presentationC programme presentation
C programme presentation
 
CS3251-_PIC
CS3251-_PICCS3251-_PIC
CS3251-_PIC
 
10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz
 
Learn C Programming Full Course Free
Learn C Programming Full Course FreeLearn C Programming Full Course Free
Learn C Programming Full Course Free
 
Programming.pptx
Programming.pptxProgramming.pptx
Programming.pptx
 
Notes of c programming 1st unit BCA I SEM
Notes of c programming  1st unit BCA I SEMNotes of c programming  1st unit BCA I SEM
Notes of c programming 1st unit BCA I SEM
 
Overview of C Mrs Sowmya Jyothi
Overview of C Mrs Sowmya JyothiOverview of C Mrs Sowmya Jyothi
Overview of C Mrs Sowmya Jyothi
 
C AND DATASTRUCTURES PREPARED BY M V B REDDY
C AND DATASTRUCTURES PREPARED BY M V B REDDYC AND DATASTRUCTURES PREPARED BY M V B REDDY
C AND DATASTRUCTURES PREPARED BY M V B REDDY
 
C notes by m v b reddy(gitam)imp notes all units notes 5 unit order
C notes by m v b  reddy(gitam)imp  notes  all units notes  5 unit orderC notes by m v b  reddy(gitam)imp  notes  all units notes  5 unit order
C notes by m v b reddy(gitam)imp notes all units notes 5 unit order
 
C Programming Unit-1
C Programming Unit-1C Programming Unit-1
C Programming Unit-1
 
naveeth ppt py.pptx
naveeth ppt py.pptxnaveeth ppt py.pptx
naveeth ppt py.pptx
 
Fundamentals of Data Structures Unit 1.pptx
Fundamentals of Data Structures Unit 1.pptxFundamentals of Data Structures Unit 1.pptx
Fundamentals of Data Structures Unit 1.pptx
 
An introduction to programming
An introduction to programmingAn introduction to programming
An introduction to programming
 
TCS-NQT-Coding-Questions-@-Recruitmentindia.in_.pdf
TCS-NQT-Coding-Questions-@-Recruitmentindia.in_.pdfTCS-NQT-Coding-Questions-@-Recruitmentindia.in_.pdf
TCS-NQT-Coding-Questions-@-Recruitmentindia.in_.pdf
 
C programming slide day 01 uploadd by md abdullah al shakil
C programming slide day 01 uploadd by md abdullah al shakilC programming slide day 01 uploadd by md abdullah al shakil
C programming slide day 01 uploadd by md abdullah al shakil
 
C language introduction geeksfor geeks
C language introduction   geeksfor geeksC language introduction   geeksfor geeks
C language introduction geeksfor geeks
 
C programing for BCA Sem 1. JJ College
C programing for BCA Sem 1. JJ CollegeC programing for BCA Sem 1. JJ College
C programing for BCA Sem 1. JJ College
 
C program
C programC program
C program
 
Programming in c
Programming in cProgramming in c
Programming in c
 

More from Mahbubay Rabbani Mim

Effect of density of the fiber on calculating the properties of textile compo...
Effect of density of the fiber on calculating the properties of textile compo...Effect of density of the fiber on calculating the properties of textile compo...
Effect of density of the fiber on calculating the properties of textile compo...
Mahbubay Rabbani Mim
 
Presentation about Core Spun Yarn.pptx
Presentation about Core Spun Yarn.pptxPresentation about Core Spun Yarn.pptx
Presentation about Core Spun Yarn.pptx
Mahbubay Rabbani Mim
 
Difference among 8085,8086,80186,80286,80386 Microprocessor.pdf
Difference among 8085,8086,80186,80286,80386 Microprocessor.pdfDifference among 8085,8086,80186,80286,80386 Microprocessor.pdf
Difference among 8085,8086,80186,80286,80386 Microprocessor.pdf
Mahbubay Rabbani Mim
 
Fsd lab 01 study on woven fabric analysis
Fsd lab 01 study on woven fabric analysisFsd lab 01 study on woven fabric analysis
Fsd lab 01 study on woven fabric analysis
Mahbubay Rabbani Mim
 
Water repellent lab report by mim
Water repellent lab report by mimWater repellent lab report by mim
Water repellent lab report by mim
Mahbubay Rabbani Mim
 
Presentation on Plain Weave and some Elementary terms of Textilel Design
Presentation on Plain Weave and some Elementary terms of Textilel DesignPresentation on Plain Weave and some Elementary terms of Textilel Design
Presentation on Plain Weave and some Elementary terms of Textilel Design
Mahbubay Rabbani Mim
 
Wet process lab 02 on Resin Finish treatment for wrinkle free
Wet process lab 02 on Resin Finish treatment for wrinkle freeWet process lab 02 on Resin Finish treatment for wrinkle free
Wet process lab 02 on Resin Finish treatment for wrinkle free
Mahbubay Rabbani Mim
 
175035 apparel lab 03 asad sir
175035 apparel lab 03 asad sir175035 apparel lab 03 asad sir
175035 apparel lab 03 asad sir
Mahbubay Rabbani Mim
 
175035 apparel lab 02 asad sir
175035 apparel lab 02 asad sir175035 apparel lab 02 asad sir
175035 apparel lab 02 asad sir
Mahbubay Rabbani Mim
 
175035 apparel lab 01 asad sir
175035 apparel lab 01 asad sir175035 apparel lab 01 asad sir
175035 apparel lab 01 asad sir
Mahbubay Rabbani Mim
 
175035 apparel lab 05 asad sir
175035 apparel lab 05 asad sir175035 apparel lab 05 asad sir
175035 apparel lab 05 asad sir
Mahbubay Rabbani Mim
 
175035 apparel lab 04 asad sir
175035 apparel lab 04 asad sir175035 apparel lab 04 asad sir
175035 apparel lab 04 asad sir
Mahbubay Rabbani Mim
 
175035 apparel assignment cutting
175035 apparel assignment cutting175035 apparel assignment cutting
175035 apparel assignment cutting
Mahbubay Rabbani Mim
 
175035 spss lab-01
175035 spss lab-01175035 spss lab-01
175035 spss lab-01
Mahbubay Rabbani Mim
 
175035 apparel lab 01
175035 apparel lab 01175035 apparel lab 01
175035 apparel lab 01
Mahbubay Rabbani Mim
 
175035 cse lab-05
175035 cse lab-05 175035 cse lab-05
175035 cse lab-05
Mahbubay Rabbani Mim
 
175035 apparel lab 03
175035 apparel lab 03175035 apparel lab 03
175035 apparel lab 03
Mahbubay Rabbani Mim
 
175035 apparel lab 03
175035 apparel lab 03175035 apparel lab 03
175035 apparel lab 03
Mahbubay Rabbani Mim
 
175035 apparel lab 04
175035 apparel lab 04175035 apparel lab 04
175035 apparel lab 04
Mahbubay Rabbani Mim
 
175035-cse LAB-04
175035-cse LAB-04 175035-cse LAB-04
175035-cse LAB-04
Mahbubay Rabbani Mim
 

More from Mahbubay Rabbani Mim (20)

Effect of density of the fiber on calculating the properties of textile compo...
Effect of density of the fiber on calculating the properties of textile compo...Effect of density of the fiber on calculating the properties of textile compo...
Effect of density of the fiber on calculating the properties of textile compo...
 
Presentation about Core Spun Yarn.pptx
Presentation about Core Spun Yarn.pptxPresentation about Core Spun Yarn.pptx
Presentation about Core Spun Yarn.pptx
 
Difference among 8085,8086,80186,80286,80386 Microprocessor.pdf
Difference among 8085,8086,80186,80286,80386 Microprocessor.pdfDifference among 8085,8086,80186,80286,80386 Microprocessor.pdf
Difference among 8085,8086,80186,80286,80386 Microprocessor.pdf
 
Fsd lab 01 study on woven fabric analysis
Fsd lab 01 study on woven fabric analysisFsd lab 01 study on woven fabric analysis
Fsd lab 01 study on woven fabric analysis
 
Water repellent lab report by mim
Water repellent lab report by mimWater repellent lab report by mim
Water repellent lab report by mim
 
Presentation on Plain Weave and some Elementary terms of Textilel Design
Presentation on Plain Weave and some Elementary terms of Textilel DesignPresentation on Plain Weave and some Elementary terms of Textilel Design
Presentation on Plain Weave and some Elementary terms of Textilel Design
 
Wet process lab 02 on Resin Finish treatment for wrinkle free
Wet process lab 02 on Resin Finish treatment for wrinkle freeWet process lab 02 on Resin Finish treatment for wrinkle free
Wet process lab 02 on Resin Finish treatment for wrinkle free
 
175035 apparel lab 03 asad sir
175035 apparel lab 03 asad sir175035 apparel lab 03 asad sir
175035 apparel lab 03 asad sir
 
175035 apparel lab 02 asad sir
175035 apparel lab 02 asad sir175035 apparel lab 02 asad sir
175035 apparel lab 02 asad sir
 
175035 apparel lab 01 asad sir
175035 apparel lab 01 asad sir175035 apparel lab 01 asad sir
175035 apparel lab 01 asad sir
 
175035 apparel lab 05 asad sir
175035 apparel lab 05 asad sir175035 apparel lab 05 asad sir
175035 apparel lab 05 asad sir
 
175035 apparel lab 04 asad sir
175035 apparel lab 04 asad sir175035 apparel lab 04 asad sir
175035 apparel lab 04 asad sir
 
175035 apparel assignment cutting
175035 apparel assignment cutting175035 apparel assignment cutting
175035 apparel assignment cutting
 
175035 spss lab-01
175035 spss lab-01175035 spss lab-01
175035 spss lab-01
 
175035 apparel lab 01
175035 apparel lab 01175035 apparel lab 01
175035 apparel lab 01
 
175035 cse lab-05
175035 cse lab-05 175035 cse lab-05
175035 cse lab-05
 
175035 apparel lab 03
175035 apparel lab 03175035 apparel lab 03
175035 apparel lab 03
 
175035 apparel lab 03
175035 apparel lab 03175035 apparel lab 03
175035 apparel lab 03
 
175035 apparel lab 04
175035 apparel lab 04175035 apparel lab 04
175035 apparel lab 04
 
175035-cse LAB-04
175035-cse LAB-04 175035-cse LAB-04
175035-cse LAB-04
 

Recently uploaded

B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
BoudhayanBhattachari
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Henry Hollis
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
سمير بسيوني
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
MysoreMuleSoftMeetup
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
S. Raj Kumar
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
imrankhan141184
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
JomonJoseph58
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
danielkiash986
 
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDFLifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Vivekanand Anglo Vedic Academy
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
RamseyBerglund
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 

Recently uploaded (20)

B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
 
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDFLifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 

175035 cse lab 01

  • 1. Lab Report Computer Applications and Programming (sessional)-3701 . Submitted by:- Name:- Mahbubay Rabbani ID:-175035 Semester & Year:-3/1 Department:-TE Submitted to:- Md.Khawja Imran Masud Lecturer Department of CSE Dhaka University of Engineering & Technology (DUET), Gazipur
  • 2. Report No.:-01 Report Name:-Introduction to C programming. Lab Date:-14.03.2021 Date of submission:-21.03.2021 Theory C is a programming language which is also called the mother of all programming languages. This programming language is developed by Dennis Ritchie in 1972.C is structured and more popular programming language. It contains only 32 keywords and it also capable of quick running. Like of all languages, C has a basic syntax. 1. Tokens:-It is a syntax part of C language. Token is either a keyword, an identifier, a string, a constant or a symbol. They are explained in the following. Keyword:-It is a reserved word and expressed by small letter.There are 32 keywords. But we can not use them as variable name, constant name etc. Identifier:-identifier is a name which is used for identifying any variables or functions. It can be expressed by capital or small letters or mix with underscore and numbers. But it can’t allow the special symbols (@, $, %). String is statement with both sides inverted comma symbol. Constant is a variable which has fixed value. Variables is a quantity in which the data types are stored. There are 5 data types:- i. Integer ii. Floating Point iii. Character iv. Double floating point v. Void They are expressed as int, float, char, double, void respectively. 2. Semicolons:- It is an another part of C syntax. It is the symbol which terminates the statement in a program and used in every program. 3. Comments:- Comments are like helping text which are ignored by a Complier. they are started with /* and ended with */
  • 3. Program 1. Hello world program with introduction Input:- /*Hello world program with my introduction. */ #include<stdio.h> int main() { printf("Hello World!n"); printf("I am Mahbubay Rabbani from DUETn"); printf("I am a student of department of TEn"); printf("My ID is 175035n"); printf("My home district is Gaibandha which belongs to Rangpur divisionn"); return 0; } Output:-
  • 4. 2.Program about Summation of two numbers. Input:- /*Now I write a program about the summation of two numbers*/ #include<stdio.h> int main() { int a, b, result; /*a,b denote the input numbers*/ printf("The first number is="); scanf("%d",&a); printf("The second number is="); scanf("%d",&b); result=a+b; printf("The summation of the numbers is=%d",result); return 0; } Output:-
  • 5. Task:- Write a C program by taking two inputs from keyboard and display the summation, subtraction, multiplication of them. Input:- /*Now I write a program about the summation,subtraction and multiplication of two numbers*/ #include<stdio.h> int main() { int a, b, result; /*a,b denote the input numbers*/ printf("The first number is="); scanf("%d",&a); printf("The second number is="); scanf("%d",&b); result=a+b; printf("The summation of the numbers is=%dn",result); result=a-b; printf("The subtraction of the numbers is=%dn",result); result=a*b; printf("The multiplication of the numbers is=%d",result); return 0; } Output:-
  • 6. Conclusion:- From this report I know about the fundamental concept of C programming and also know how programming languages work for summation, subtraction and multiplication. I think this report is very fruitful and helps in my practical life.