Professional Documents
Culture Documents
PL1 All Codes by Sadat PDF
PL1 All Codes by Sadat PDF
UNIVERSITY- BANGLADESH
where leaders are created
-----------------------------------------------------
CODES OF WHOLE SEMESTER FROM CLASSES
-----------------------------------------------------
th
Released on 25 august, 2017 VERSION: 1.OO
TOPICS
BASIC C FUNCTIONS
NORMAL PROGRAMS POINTER
IF-ELSE STATEMENTS ARRAY
LOOP STRING
PATTERN PRINTING STRUCTURE
SADAT JUBAYER
SHAHRIN CHOWDHURY
Three free Advices Hai, Lena hai toh Lo, Nahi toh Jaane do..!
Don’t memorize codes, try to understand the concept.
Type codes by your own hand instead of copy-pasting.
Learn coding to become a Programmer, not for getting A+ on the exams.
Basic C-Programming
*Printing Hello World
*Take two number as input and print the sum of the numbers
*15 employees, if extra hour is more than 40 will get 600 per extra
hour, otherwise no bonus.
*Printing this:
Number of Line N=3 Number of Line N=5
* *
* * * *
* * * * * *
* * * *
* * * * *
* * * * * * * *
* * * * * *
* * * *
* *
*
1 1
1 2 1 2
1 2 3 1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 1 2 3 4 5
1 2 1 2 3 4
1 1 2 3
2 2
1
1 1
1 2 1 1 2 1
1 2 3 2 1 1 2 3 2 1
1 2 3 4 3 2 1
1 1
1 2 3 1 2 3
1 2 3 4 5 1 2 3 4 5
1 2 3 4 5 6 7
1 1
2 3 4 2 3 4
5 6 7 8 9 5 6 7 8 9
10 11 12 13 14 15 16
1 1
3 2 1 3 2 1
4 3 2 1 4 3 2 1
5 4 3 2 1
Output:
String Compare:
String Length:
String Reverse:
Function Format
Function Format
Function Format
Function Format
Function Format
Output: