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

Programming in c

Uploaded by

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

Programming in c

Uploaded by

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

PROGRAMMING IN C: TERM WORK – MID Deadline- 16/10/2024 by 2 PM

B.Sc (IT/CS) 1ST SEM


Rules: -
• Use A4 sheet for all
• Question and objective of program will be added first.
• Algorithm (with pen) and flowchart(with pencil) should be hand written and code will be printed.
• Add Screenshot of output.
• Font Style – Times New Roman
• Heading’s font size – 12 and rest of font size – 11
• Submit in a folder – no binding needed

Programs:
1. Write a C Program to Check if a Number is Positive, Negative, or Zero.
2. Write a C Program to calculate sum of digits of a number.
3. Write a C Program to find sum of all even numbers between 1 to n, where n will be taken an input.
4. Write a C Program to enter a number and print its reverse using while loop.
5. Write a C Program to input marks of five subjects Physics, Chemistry, Biology, Mathematics and Computer.
Calculate percentage and grade according to following:

Percentage >= 90% : Grade A Percentage >= 80% : Grade B Percentage >= 70% : Grade C Percentage >= 60% :
Grade D Percentage >= 40% : Grade E Percentage < 40% : Grade F
6. Write a C Program to SWAP two variables number by using third variable.
7. Write a C Program to check if a number is divisible by 5 and 11.
8. Write a C Program to check whether a 3-digit number is Armstrong number or not.

(3-digit Armstrong number is a number that is equal to the sum of cubes of its digits ex: 153, 370)
9. Write a C Program to check whether a number is Prime number or not.
10. Write a C Program to Calculate the Factorial of a Number using For loop.

You might also like