0% found this document useful (0 votes)
14 views

Assignment 2 C Language

Main Question

Uploaded by

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

Assignment 2 C Language

Main Question

Uploaded by

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

PHONICS GROUP OF INSTITUTIONS, ROORKEE

Department of Computer Science & Engineering

Session: 2024-25 Semester: I

Subject: Programming in C Code- BCA-101

Course: BCA Branch : IT

Date of Assignment: 05/10/2024 Date of Submission : 10/10/2024

Assignment No : 2

Ques 1: What is IF-ELSE statement in C language ? with example.


Ques 2: What is switch case in C language explain its syntax also.
Ques 3: Difference between while loop and do while loop with example.
Ques 4: What is for loop .write a program to find the factorial of a given no .
Ques 5: what is the output of the following program :-
( i. ) #include<stdio.h>
int main()
{
int i;
for(i=0 ; i<=5 ; i++)
{
i=5;
printf("%d ",i);
}
i--;
printf("%d \n",i);
}

You might also like