Professional Documents
Culture Documents
OBJECTIVES:
The main purpose of this course is to introduce to students is to learn programming using “C”
language. By learning this language we should improve our skills in programming and we are
able to write programs in “C”
POST LAB TASKS:
Task 1:
Write a program that print this
@@@@@@@@@
@@@@@@@@@
*** Your Name ***
@@@@@@@@@
@@@@@@@@@
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("\n\t@@@@@@@@@@@@@@@@@\n\t@@@@@@@@@@@@@@@@@\n\t
***SAAD BIN
RIAZ***\n\t@@@@@@@@@@@@@@@@@\n\t@@@@@@@@@@@@@@@@@\n\t");
return 0;
}
TASK 2:
Write a program that calculate the area of triangle and rectangle by taking the values length and
width as input, where formulas are given below.
Area of triangle = ½( length * width )
Area of rectangle = length * width
#include <stdio.h>
#include <stdlib.h>
int main()
{
int length,width,Area1,Area2;