SlideShare a Scribd company logo
1 of 33
ReshmaRaju
chippykutty5593@gmail.com
Reshmachippykutty
twitter.com/username
in.linkedin.com/in/profilename
8547829221
ELEMENTS OF PROGRAMMING
Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
document of baabtra –Mentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
VARIABLES
VARIABLES
 A variable is nothing but a name given to a storage area that our
programs can manipulate.
 Each variable in C has a specific type, which determines the size
and layout of the variable's memory; the range of values that can
be stored within that memory; and the set of operations that can be
applied to the variable.
 The name of a variable can be composed of letters, digits, and the
underscore character. It must begin with either a letter or an
underscore.
VARIABLE TYPES
Type Description
char Typically a single octet(one byte). This is an integer
type.
int The most natural size of integer for the machine.
float A single-precision floating point value.
double A double-precision floating point value.
void Represents the absence of type.
SYNTAX AND EXAMPLE
SYNTAX:
type variable_list;
EXAMPLES:
int i, j, k;
char c, ch;
float f, salary;
double d;
DECISION MAKING STSTEMENT
if statement
 The if statement is a decision making statement.
 It is used to control the flow of execution and also used to test
logically whether the condition is true or false.
 Syntax:-
If(condition)
{
Statement;
}
Example for if statement
#include<stdio.h> OUTPUT
void main() Enter the number :9
{ The entered number 9 is less than 10
int i;
printf("Enter the number :");
scanf("%d",&i);
if(i<10)
{
printf("The entered number %d is less than 10",i);
}
}
If…..else statement
 The if....else statement is an extension of the simple if statement.
 The syntax is:
if (condition)
{
True-block statement;
}
else
{
False-block statement;
}
 If the condition is true, then the true-block statements are
executed; otherwise the false-block statement are executed.
Example for if….else statement
#include<stdio.h> OUTPUT
void main() Enter the number :50
{
int i; The entered number 50 is greater than 10
printf("Enter the number :");
scanf("%d",&i);
if(i<10)
{
printf(“nThe entered number %d is less than 10n",i);
}
else
{
printf(“nThe entered number %d is greater than 10n",i);
}
}
Nested If-else statement
 The nested if...else statement is used when program requires more than one
test expression.
 The syntax is:
if (test expression1)
{ statement to be executed if test expression1 is true;
}
else if(test expression2)
{statement to be executed if test expression1 is false and 2 is true;
}
else if (test expression 3)
{ statement to be executed if text expression1 and 2 are false and 3 is true;
}
.
.
else
{ statements to be executed if all test expressions are false;
}
Example for Nested if-else statement
#include <stdio.h> OUTPUT
int main() Enter two integers :40 50
{ Result: 50>40
int numb1, numb2;
printf("Enter two integers :");
scanf("%d %d",&numb1,&numb2);
if(numb1==numb2) //checking whether two integers are equal.
printf("Result: %d = %d",numb1,numb2);
else
if(numb1>numb2) //checking whether numb1 is greater than numb2.
printf("Result: %d > %d",numb1,numb2);
else
printf("Result: %d > %d",numb2,numb1);
}
Switch statement
 The switch statement evaluates an expression, then attempts to
match the result to one of several possible cases.
 Each case contains a value and a list of statements
 Often a break statement is used as the last statement in each case's
statement list
 A break statement causes control to transfer to the end of the
switch statement
 If a break statement is not used, the flow of control will continue
into the next case
Example for switch statement
#include<stdio.h>
void main()
{
int int_i; // declare the variable int_i
printf("n 1.Play game n");
printf("n 2.Load game n");
printf("n 3.Play multiplayer n");
printf("n 4.Exit n");
printf("n ENTER YOUR CHOICE:");
scanf("n %d",&int_i); //store the integer variable
switch(int_i) // select the switch case statement
{
case 1:
printf("n WELCOME PLAYER");
break; // break the case 1
case 2:
printf("n WAIT WHILE THE GAME IS LOADING");
break;
case 3:
printf("n CONNECT YOUR PARTNERS") ; OUTPUT
break; 1. Play Game
case 4: 2. Load Game
exit(0); //exit the function 3. Play Multiplayer
4. Exit
default: ENTER YOUR CHOICE:2
printf("n INVALID") ;
break; WAIT WHILE THE GAME IS
LOADING
}
}
Ternary condition
Syntax :
expression 1 ? expression 2 : expression 3
 expression1 is Condition
 expression2 is Statement Followed if Condition is True
 Expression3 is Statement Followed if Condition is False
Example for ternary condition
#include<stdio.h>
int main()
{
int num;
printf("Enter the Number : ");
scanf("%d",&num);
(num%2==0)?printf("Even"):printf("Odd");
}
OUTPUT
Enter the number : 5
Odd
Break statement
 break statement is used to exit from a loop or a switch, control
passing to the first statement beyond the loop or a switch.
Example for break statement
#include<stdio.h>
void main()
{
int i; OUTPUT
for(i=0;i<=10;i++)
{ 0 1 2 3 4
if(i==5)
{
break;
}
printf(" %d",i);
}
}
Continue statement
 continue is similar to the break statement but it only works
within loops where its effect is to force an immediate jump to
the loop control statement.
Example for continue statement
#include<stdio.h>
void main()
{
int i; OUTPUT
for(i=0;i<10;i++)
{ 0 1 2 3 4 5 6 7 8 9
if(i==5)
{
continue;
}
printf(" %d",i);
}
}
LOOP CONTROL STATEMENT
LOOP CONTROL STATEMENT
 Loop control statements in C are used to perform looping
operations until the given condition is true. Control comes out of
the loop statements once condition becomes false.
 Types of loop control statements in C:
There are 3 types of loop control statements in C language. They are,
 for
 while
 do-while
for Loop
 A for loop is a repetition control structure that allows you to
efficiently write a loop that needs to execute a specific number of
times.
 The syntax of a for loop in C programming language is:
for ( init; condition; increment )
{
statement(s);
}
Example of for loop
#include <stdio.h>
int main () OUTPUT
{ value of a: 10
for( int a = 10; a < 20; a = a + 1 ) value of a: 11
{ value of a: 12
printf("value of a: %dn", a); value of a: 13
} value of a: 14
return 0; value of a: 15
} value of a: 16
value of a: 17
value of a: 18
value of a: 19
while loop
 A while loop statement in C programming language repeatedly
executes a target statement as long as a given condition is true.
 The syntax of a while loop in C programming language is:
while(condition)
{
statement(s);
}
Example of while loop
#include <stdio.h> OUTPUT
int main () value of a: 10
{ value of a: 11
int a = 10; /* local variable definition */ value of a: 12
while( a < 20 )/* while loop execution */ value of a: 13
{ value of a: 14
printf("value of a: %dn", a); value of a: 15
a++; value of a: 16
} value of a: 17
return 0; value of a: 18
} value of a: 19
do...while loop
 A do...while loop is similar to a while loop, except that a
do...while loop is guaranteed to execute at least one time.
 The syntax of a do...while loop in C programming language is:
do
{
statement(s);
}
while( condition );
Example of do…while loop
#include <stdio.h> OUTPUT
int main () value of a: 10
{ value of a: 11
int a = 10; /* local variable definition */ value of a: 12
do /* do loop execution */ value of a: 13
{ value of a: 14
printf("value of a: %dn", a); value of a: 15
a = a + 1; value of a: 16
} value of a: 17
while( a < 20 ); value of a: 18
return 0; value of a: 19
}
THANK YOU
Want to learn more about programming or Looking to become a good programmer?
Are you wasting time on searching so many contents online?
Do you want to learn things quickly?
Tired of spending huge amount of money to become a Software professional?
Do an online course
@ baabtra.com
We put industry standards to practice. Our structured, activity based courses are so designed
to make a quick, good software professional out of anybody who holds a passion for coding.
Follow us @ twitter.com/baabtra
Like us @ facebook.com/baabtra
Subscribe to us @ youtube.com/baabtra
Become a follower @ slideshare.net/BaabtraMentoringPartner
Connect to us @ in.linkedin.com/in/baabtra
Give a feedback @ massbaab.com/baabtra
Thanks in advance
www.baabtra.com | www.massbaab.com |www.baabte.com
Emarald Mall (Big Bazar Building)
Mavoor Road, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
NC Complex, Near Bus Stand
Mukkam, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
Cafit Square,
Hilite Business Park,
Near Pantheerankavu,
Kozhikode
Start up Village
Eranakulam,
Kerala, India.
Email: info@baabtra.com
Contact Us

More Related Content

What's hot (20)

Structure of a C program
Structure of a C programStructure of a C program
Structure of a C program
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and Flowcharts
 
Functions in c language
Functions in c language Functions in c language
Functions in c language
 
Wrapper class
Wrapper classWrapper class
Wrapper class
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
 
Type casting in c programming
Type casting in c programmingType casting in c programming
Type casting in c programming
 
Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language Lecture 5 - Structured Programming Language
Lecture 5 - Structured Programming Language
 
Html
HtmlHtml
Html
 
Introduction to oops concepts
Introduction to oops conceptsIntroduction to oops concepts
Introduction to oops concepts
 
Features of c
Features of cFeatures of c
Features of c
 
C++ Overview PPT
C++ Overview PPTC++ Overview PPT
C++ Overview PPT
 
Presentation on Function in C Programming
Presentation on Function in C ProgrammingPresentation on Function in C Programming
Presentation on Function in C Programming
 
Data types in C
Data types in CData types in C
Data types in C
 
Python basics
Python basicsPython basics
Python basics
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Functions in c
Functions in cFunctions in c
Functions in c
 
2. html attributes
2. html attributes2. html attributes
2. html attributes
 
Operators in C Programming
Operators in C ProgrammingOperators in C Programming
Operators in C Programming
 
Applets in java
Applets in javaApplets in java
Applets in java
 
Class and Objects in Java
Class and Objects in JavaClass and Objects in Java
Class and Objects in Java
 

Viewers also liked

Viewers also liked (14)

C++ Programming
C++ ProgrammingC++ Programming
C++ Programming
 
User defined data type
User defined data typeUser defined data type
User defined data type
 
Data type
Data typeData type
Data type
 
C++ Language
C++ LanguageC++ Language
C++ Language
 
Data types
Data typesData types
Data types
 
Data and its types by adeel
Data and its types by adeelData and its types by adeel
Data and its types by adeel
 
functions of C++
functions of C++functions of C++
functions of C++
 
Data types
Data typesData types
Data types
 
Basic c++ programs
Basic c++ programsBasic c++ programs
Basic c++ programs
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
 
Concept Of C++ Data Types
Concept Of C++ Data TypesConcept Of C++ Data Types
Concept Of C++ Data Types
 
Data Types and Variables In C Programming
Data Types and Variables In C ProgrammingData Types and Variables In C Programming
Data Types and Variables In C Programming
 
C++ programs
C++ programsC++ programs
C++ programs
 
Basics of c++ Programming Language
Basics of c++ Programming LanguageBasics of c++ Programming Language
Basics of c++ Programming Language
 

Similar to Elements of Programming Explained in Simple Terms

Elements of c program....by thanveer danish
Elements of c program....by thanveer danishElements of c program....by thanveer danish
Elements of c program....by thanveer danishMuhammed Thanveer M
 
Programming fundamental 02
Programming fundamental 02Programming fundamental 02
Programming fundamental 02Suhail Akraam
 
computer programming Control Statements.pptx
computer programming Control Statements.pptxcomputer programming Control Statements.pptx
computer programming Control Statements.pptxeaglesniper008
 
Control Structures in C
Control Structures in CControl Structures in C
Control Structures in Csana shaikh
 
C decision making and looping.
C decision making and looping.C decision making and looping.
C decision making and looping.Haard Shah
 
Programming basics
Programming basicsProgramming basics
Programming basics246paa
 
Control structure of c
Control structure of cControl structure of c
Control structure of cKomal Kotak
 
1584503386 1st chap
1584503386 1st chap1584503386 1st chap
1584503386 1st chapthuhiendtk4
 
C Programming: Control Structure
C Programming: Control StructureC Programming: Control Structure
C Programming: Control StructureSokngim Sa
 
C programming Control Structure.pptx
C programming Control Structure.pptxC programming Control Structure.pptx
C programming Control Structure.pptxDEEPAK948083
 
Fundamental of Information Technology - UNIT 8
Fundamental of Information Technology - UNIT 8Fundamental of Information Technology - UNIT 8
Fundamental of Information Technology - UNIT 8Shipra Swati
 
C Sharp Jn (3)
C Sharp Jn (3)C Sharp Jn (3)
C Sharp Jn (3)jahanullah
 
C C++ tutorial for beginners- tibacademy.in
C C++ tutorial for beginners- tibacademy.inC C++ tutorial for beginners- tibacademy.in
C C++ tutorial for beginners- tibacademy.inTIB Academy
 

Similar to Elements of Programming Explained in Simple Terms (20)

Elements of c program....by thanveer danish
Elements of c program....by thanveer danishElements of c program....by thanveer danish
Elements of c program....by thanveer danish
 
Programming fundamental 02
Programming fundamental 02Programming fundamental 02
Programming fundamental 02
 
computer programming Control Statements.pptx
computer programming Control Statements.pptxcomputer programming Control Statements.pptx
computer programming Control Statements.pptx
 
Control Structures in C
Control Structures in CControl Structures in C
Control Structures in C
 
C Programming Unit-2
C Programming Unit-2C Programming Unit-2
C Programming Unit-2
 
C decision making and looping.
C decision making and looping.C decision making and looping.
C decision making and looping.
 
Programming basics
Programming basicsProgramming basics
Programming basics
 
Control structure of c
Control structure of cControl structure of c
Control structure of c
 
Programming in C
Programming in CProgramming in C
Programming in C
 
1584503386 1st chap
1584503386 1st chap1584503386 1st chap
1584503386 1st chap
 
C Programming: Control Structure
C Programming: Control StructureC Programming: Control Structure
C Programming: Control Structure
 
Loops
LoopsLoops
Loops
 
C tutorial
C tutorialC tutorial
C tutorial
 
C programming Control Structure.pptx
C programming Control Structure.pptxC programming Control Structure.pptx
C programming Control Structure.pptx
 
Looping statements
Looping statementsLooping statements
Looping statements
 
if,loop,switch
if,loop,switchif,loop,switch
if,loop,switch
 
Fundamental of Information Technology - UNIT 8
Fundamental of Information Technology - UNIT 8Fundamental of Information Technology - UNIT 8
Fundamental of Information Technology - UNIT 8
 
C Sharp Jn (3)
C Sharp Jn (3)C Sharp Jn (3)
C Sharp Jn (3)
 
C C++ tutorial for beginners- tibacademy.in
C C++ tutorial for beginners- tibacademy.inC C++ tutorial for beginners- tibacademy.in
C C++ tutorial for beginners- tibacademy.in
 
Lec 10
Lec 10Lec 10
Lec 10
 

More from baabtra.com - No. 1 supplier of quality freshers

More from baabtra.com - No. 1 supplier of quality freshers (20)

Agile methodology and scrum development
Agile methodology and scrum developmentAgile methodology and scrum development
Agile methodology and scrum development
 
Best coding practices
Best coding practicesBest coding practices
Best coding practices
 
Core java - baabtra
Core java - baabtraCore java - baabtra
Core java - baabtra
 
Acquiring new skills what you should know
Acquiring new skills   what you should knowAcquiring new skills   what you should know
Acquiring new skills what you should know
 
Baabtra.com programming at school
Baabtra.com programming at schoolBaabtra.com programming at school
Baabtra.com programming at school
 
99LMS for Enterprises - LMS that you will love
99LMS for Enterprises - LMS that you will love 99LMS for Enterprises - LMS that you will love
99LMS for Enterprises - LMS that you will love
 
Php sessions & cookies
Php sessions & cookiesPhp sessions & cookies
Php sessions & cookies
 
Php database connectivity
Php database connectivityPhp database connectivity
Php database connectivity
 
Chapter 6 database normalisation
Chapter 6  database normalisationChapter 6  database normalisation
Chapter 6 database normalisation
 
Chapter 5 transactions and dcl statements
Chapter 5  transactions and dcl statementsChapter 5  transactions and dcl statements
Chapter 5 transactions and dcl statements
 
Chapter 4 functions, views, indexing
Chapter 4  functions, views, indexingChapter 4  functions, views, indexing
Chapter 4 functions, views, indexing
 
Chapter 3 stored procedures
Chapter 3 stored proceduresChapter 3 stored procedures
Chapter 3 stored procedures
 
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
Chapter 2  grouping,scalar and aggergate functions,joins   inner join,outer joinChapter 2  grouping,scalar and aggergate functions,joins   inner join,outer join
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
Microsoft holo lens
Microsoft holo lensMicrosoft holo lens
Microsoft holo lens
 
Blue brain
Blue brainBlue brain
Blue brain
 
5g
5g5g
5g
 
Aptitude skills baabtra
Aptitude skills baabtraAptitude skills baabtra
Aptitude skills baabtra
 
Gd baabtra
Gd baabtraGd baabtra
Gd baabtra
 

Elements of Programming Explained in Simple Terms

  • 1.
  • 3. Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring Partner Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
  • 5. VARIABLES  A variable is nothing but a name given to a storage area that our programs can manipulate.  Each variable in C has a specific type, which determines the size and layout of the variable's memory; the range of values that can be stored within that memory; and the set of operations that can be applied to the variable.  The name of a variable can be composed of letters, digits, and the underscore character. It must begin with either a letter or an underscore.
  • 6. VARIABLE TYPES Type Description char Typically a single octet(one byte). This is an integer type. int The most natural size of integer for the machine. float A single-precision floating point value. double A double-precision floating point value. void Represents the absence of type.
  • 7. SYNTAX AND EXAMPLE SYNTAX: type variable_list; EXAMPLES: int i, j, k; char c, ch; float f, salary; double d;
  • 9. if statement  The if statement is a decision making statement.  It is used to control the flow of execution and also used to test logically whether the condition is true or false.  Syntax:- If(condition) { Statement; }
  • 10. Example for if statement #include<stdio.h> OUTPUT void main() Enter the number :9 { The entered number 9 is less than 10 int i; printf("Enter the number :"); scanf("%d",&i); if(i<10) { printf("The entered number %d is less than 10",i); } }
  • 11. If…..else statement  The if....else statement is an extension of the simple if statement.  The syntax is: if (condition) { True-block statement; } else { False-block statement; }  If the condition is true, then the true-block statements are executed; otherwise the false-block statement are executed.
  • 12. Example for if….else statement #include<stdio.h> OUTPUT void main() Enter the number :50 { int i; The entered number 50 is greater than 10 printf("Enter the number :"); scanf("%d",&i); if(i<10) { printf(“nThe entered number %d is less than 10n",i); } else { printf(“nThe entered number %d is greater than 10n",i); } }
  • 13. Nested If-else statement  The nested if...else statement is used when program requires more than one test expression.  The syntax is: if (test expression1) { statement to be executed if test expression1 is true; } else if(test expression2) {statement to be executed if test expression1 is false and 2 is true; } else if (test expression 3) { statement to be executed if text expression1 and 2 are false and 3 is true; } . . else { statements to be executed if all test expressions are false; }
  • 14. Example for Nested if-else statement #include <stdio.h> OUTPUT int main() Enter two integers :40 50 { Result: 50>40 int numb1, numb2; printf("Enter two integers :"); scanf("%d %d",&numb1,&numb2); if(numb1==numb2) //checking whether two integers are equal. printf("Result: %d = %d",numb1,numb2); else if(numb1>numb2) //checking whether numb1 is greater than numb2. printf("Result: %d > %d",numb1,numb2); else printf("Result: %d > %d",numb2,numb1); }
  • 15. Switch statement  The switch statement evaluates an expression, then attempts to match the result to one of several possible cases.  Each case contains a value and a list of statements  Often a break statement is used as the last statement in each case's statement list  A break statement causes control to transfer to the end of the switch statement  If a break statement is not used, the flow of control will continue into the next case
  • 16. Example for switch statement #include<stdio.h> void main() { int int_i; // declare the variable int_i printf("n 1.Play game n"); printf("n 2.Load game n"); printf("n 3.Play multiplayer n"); printf("n 4.Exit n"); printf("n ENTER YOUR CHOICE:"); scanf("n %d",&int_i); //store the integer variable switch(int_i) // select the switch case statement { case 1: printf("n WELCOME PLAYER"); break; // break the case 1
  • 17. case 2: printf("n WAIT WHILE THE GAME IS LOADING"); break; case 3: printf("n CONNECT YOUR PARTNERS") ; OUTPUT break; 1. Play Game case 4: 2. Load Game exit(0); //exit the function 3. Play Multiplayer 4. Exit default: ENTER YOUR CHOICE:2 printf("n INVALID") ; break; WAIT WHILE THE GAME IS LOADING } }
  • 18. Ternary condition Syntax : expression 1 ? expression 2 : expression 3  expression1 is Condition  expression2 is Statement Followed if Condition is True  Expression3 is Statement Followed if Condition is False
  • 19. Example for ternary condition #include<stdio.h> int main() { int num; printf("Enter the Number : "); scanf("%d",&num); (num%2==0)?printf("Even"):printf("Odd"); } OUTPUT Enter the number : 5 Odd
  • 20. Break statement  break statement is used to exit from a loop or a switch, control passing to the first statement beyond the loop or a switch. Example for break statement #include<stdio.h> void main() { int i; OUTPUT for(i=0;i<=10;i++) { 0 1 2 3 4 if(i==5) { break; } printf(" %d",i); } }
  • 21. Continue statement  continue is similar to the break statement but it only works within loops where its effect is to force an immediate jump to the loop control statement. Example for continue statement #include<stdio.h> void main() { int i; OUTPUT for(i=0;i<10;i++) { 0 1 2 3 4 5 6 7 8 9 if(i==5) { continue; } printf(" %d",i); } }
  • 23. LOOP CONTROL STATEMENT  Loop control statements in C are used to perform looping operations until the given condition is true. Control comes out of the loop statements once condition becomes false.  Types of loop control statements in C: There are 3 types of loop control statements in C language. They are,  for  while  do-while
  • 24. for Loop  A for loop is a repetition control structure that allows you to efficiently write a loop that needs to execute a specific number of times.  The syntax of a for loop in C programming language is: for ( init; condition; increment ) { statement(s); }
  • 25. Example of for loop #include <stdio.h> int main () OUTPUT { value of a: 10 for( int a = 10; a < 20; a = a + 1 ) value of a: 11 { value of a: 12 printf("value of a: %dn", a); value of a: 13 } value of a: 14 return 0; value of a: 15 } value of a: 16 value of a: 17 value of a: 18 value of a: 19
  • 26. while loop  A while loop statement in C programming language repeatedly executes a target statement as long as a given condition is true.  The syntax of a while loop in C programming language is: while(condition) { statement(s); }
  • 27. Example of while loop #include <stdio.h> OUTPUT int main () value of a: 10 { value of a: 11 int a = 10; /* local variable definition */ value of a: 12 while( a < 20 )/* while loop execution */ value of a: 13 { value of a: 14 printf("value of a: %dn", a); value of a: 15 a++; value of a: 16 } value of a: 17 return 0; value of a: 18 } value of a: 19
  • 28. do...while loop  A do...while loop is similar to a while loop, except that a do...while loop is guaranteed to execute at least one time.  The syntax of a do...while loop in C programming language is: do { statement(s); } while( condition );
  • 29. Example of do…while loop #include <stdio.h> OUTPUT int main () value of a: 10 { value of a: 11 int a = 10; /* local variable definition */ value of a: 12 do /* do loop execution */ value of a: 13 { value of a: 14 printf("value of a: %dn", a); value of a: 15 a = a + 1; value of a: 16 } value of a: 17 while( a < 20 ); value of a: 18 return 0; value of a: 19 }
  • 31. Want to learn more about programming or Looking to become a good programmer? Are you wasting time on searching so many contents online? Do you want to learn things quickly? Tired of spending huge amount of money to become a Software professional? Do an online course @ baabtra.com We put industry standards to practice. Our structured, activity based courses are so designed to make a quick, good software professional out of anybody who holds a passion for coding.
  • 32. Follow us @ twitter.com/baabtra Like us @ facebook.com/baabtra Subscribe to us @ youtube.com/baabtra Become a follower @ slideshare.net/BaabtraMentoringPartner Connect to us @ in.linkedin.com/in/baabtra Give a feedback @ massbaab.com/baabtra Thanks in advance www.baabtra.com | www.massbaab.com |www.baabte.com
  • 33. Emarald Mall (Big Bazar Building) Mavoor Road, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550 NC Complex, Near Bus Stand Mukkam, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550 Cafit Square, Hilite Business Park, Near Pantheerankavu, Kozhikode Start up Village Eranakulam, Kerala, India. Email: info@baabtra.com Contact Us