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

Comsat University Abbottabad Department of BSE-2C

COMSAT UNIVERSITY ISLAMABAD


ABBOTTABAD CAMPUS

Course Title : PROGRAMMING LAB


Assignment NO : CLASS LAB 1
Written By : USAMA
Registration NO : CIIT/FA20-BSE-086/ABT
Section : C
Date : Saturday, MAY 01, 2021
Comsat University Abbottabad Department of BSE-2C

LAB 1:
TASK:
Discuss the basic building block of C program. Also practiced different basic programs
(e.g. Below) in the Lab with all possible variations.

Program 1: simple c program:

Program Code:

// Simple C program illustrating Escape Sequences


#include<stdio.h>
int main()
{
printf("Welcome to C programming\n");
printf("\tWelcome to C programming\n");
printf("Welcome to C programming\a\n");
printf("Welcome to C programming\\");
getche();
}

Output:
Comsat University Abbottabad Department of BSE-2C

You might also like