You are on page 1of 2

PROGRAMMING IN C SESSION ONE

Flow chart objects:

START/STOP/END

GET/WRITE/READ/DISPLAY
/INPUT/OUTPUT/PRINT

ADD/SUBTRACT/MULTIPLY/DIVIDE
….ANY PROCESS

N Y
DECISION
MAKING

CONNECTING LINES SHOWING FLOW OF PROCESS

Quick Reference:

printf():

Syntax : printf(“String to be displayed”);

Backslash Codes / Escape Sequences:

\n New Line

\t Horizontal Tab

\? Question Mark

\\ Backslash

\’ Single Quote

\” Double Quote

A.V. Parekh Technical Institute, Rajkot | Electronics and Communication Dept. | 2009 1
PROGRAMMING IN C SESSION ONE

Flow Charts:
1. Draw a Flowchart in which two numbers 10 and 20 are given and shows the sum as output.
2. Draw a Flowchart which accepts two number s from user and shows SUM, SUBTRACTION,
MULTIPLICATION AND DIVISION as output.

Programs :
1. WAP to display your name.

2. WAP to display the following:

AVPT Institute
Tagore Marg
Rajkot

3. WAP to display the following:

Electronics and Communication Dept


AVPT Institute
Rajkot
4. WAP to display following Pattern:

1
1 2
1 2 3
1 2 3 4

5. WAP make the table as follow:

************************************************************************
***** AVPT Institute Rajkot *****
************************************************************************
| |
| |
| |
| |
| Welcomes You on the Eve of Alumni Meet - 2009 |
| |
| |
| |
########################################################################

6. Repeat Question 5 with following modifications:


Replace * with \ Sign # with “ Sign, | sign with ? sign and Replace the text as follows :
“Thanks for attending the function” (Quotes must be shown on the output screen!!!)

A.V. Parekh Technical Institute, Rajkot | Electronics and Communication Dept. | 2009 2

You might also like