0% found this document useful (0 votes)
28 views5 pages

TP 2

Uploaded by

machurahama2005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views5 pages

TP 2

Uploaded by

machurahama2005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

TAHRI Mohamed University Bechar Module : ADS1

Level : 1st year computer science engineering Semester : 1

TP N°2

Simple sequential algorithm

1- Structure of a Program

 #include <stdio.h>: Includes the standard input output library functions. The printf()
function is defined in stdio.h .
 void main (): The main () function is the entry point of every program in c language.
 The void keyword specifies that it returns no value.
 return 0: Main function return value.
 {: Begin
 }: End

2- Declaration of Variables/Constants

3- Basic data types

Academic year 2024/2025 Mrs. S Touhami


TAHRI Mohamed University Bechar Module : ADS1
Level : 1st year computer science engineering Semester : 1

4- Read and write variables

Academic year 2024/2025 Mrs. S Touhami


TAHRI Mohamed University Bechar Module : ADS1
Level : 1st year computer science engineering Semester : 1

5- Variable initialization

6- Operators

Academic year 2024/2025 Mrs. S Touhami


TAHRI Mohamed University Bechar Module : ADS1
Level : 1st year computer science engineering Semester : 1

7- Types conversion

Academic year 2024/2025 Mrs. S Touhami


TAHRI Mohamed University Bechar Module : ADS1
Level : 1st year computer science engineering Semester : 1

Academic year 2024/2025 Mrs. S Touhami

You might also like