Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

TP 2

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

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