[go: up one dir, main page]

0% found this document useful (0 votes)
10 views2 pages

a1 switch & loops

The document outlines a list of programming tasks to be performed, primarily focused on writing C programs using various control structures such as switch statements, while loops, and for loops. Tasks include calculating days of the week, creating a simple calculator, checking for prime numbers, and handling student grades. It also includes exercises for number manipulation and pattern printing.

Uploaded by

hinalpatel.8182
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)
10 views2 pages

a1 switch & loops

The document outlines a list of programming tasks to be performed, primarily focused on writing C programs using various control structures such as switch statements, while loops, and for loops. Tasks include calculating days of the week, creating a simple calculator, checking for prime numbers, and handling student grades. It also includes exercises for number manipulation and pattern printing.

Uploaded by

hinalpatel.8182
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/ 2

List of Task to be performed

20/09/2024

1. Write a C program to calculate Days of the Week using switch


statement.
2. Write a C program to calculate Simple Calculator using switch
statement.
3. Write a C program to calculate Vowel or Consonant using switch
statement.
4. Write a C program to check Even/Odd using switch statement.
5. Write a C program to check Grade Classification using switch
statement.
6. Write a C program to check Grade Classification using switch
statement.
7. Write a C program to check Month to Season using switch statement.
8. Write a C program to check Number to Word using switch statement.
9. Write a C program to check Temperature Conversion Menu using
switch statement.
10. Write a C program to Print Numbers from 1 to 10 using while loop.
11. Write a C program to Sum of First N Natural Numbers using while
loop.
12. Write a C program to Reverse a Number using while loop.
13. Write a C program to Check if a Number is Prime using while loop.
14. Write a C program to find factorial of number using while loop.
15. Write a C program to Sum of Digits of a Number using while loop.
16. If a four-digit number is input through the keyboard, write a program
to obtain the sum of the first and last digit of this number.
17. Write a program to take input of name, rollno and marks obtained by
a student in 4 subjects of 100 marks each and display the name,
rollno with percentage score secured.
18. Write a program to compute grade of students using if else adder.
The grades are assigned as followed:
Marks Grade Grade
b. marks<50 F
c. 50≤marks< 60 C
d. 60≤marks<70 B
e. 70≤marks<80 B+
f. 80≤marks<90 A
g. 90≤mars≤ 100 A+
19. Write a program to check number is Armstrong or not using while
loop.
20. Write a C program to Counting the Number of Digits using while
loop.
21. Write a C program to Print multiplication table of a number using for
loop
22. Write a program to print positive integers from 1 to 10.(Using for
loop,while loop and Do-while loop)
23. sum of the first and last digit of this number.
24. Write a C program to reverse a given number using a for loop.
25. Write a C program to find the Greatest Common Divisor (GCD) of
two numbers using a for loop.
26. Write a program to check whether a number is Palindrome or not.
27. Write a program to display the following pattern.
*
**
***
****
*****

You might also like