0% found this document useful (0 votes)
3 views1 page

C Assignment

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)
3 views1 page

C Assignment

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

FUNDAMENTALS OF COMPUTER SCIENCE/ PROGRAMMING FOR

PROBLEM SOLVING USING C Assignment

1. (13.43)10 – Convert this number into octal.


2. (14.7)8 convert this octal to Decimal number.
3. Explain the syntax of an if-else statement with an example.
4. Write a program to accept n numbers from the user and find the total product of all the
numbers.
5. What is Operator in C?
6. Discuss Relational Operators in C?
7. Write a program to accept a number from the user and check if the number is perfect or not.
8. Write a program to accept n numbers from the user and also accept another number from the
user and check if the number is present in the given array or not, if the number is present then
print the position of the number.
9. Expl ai n t he r ol e of arit hm eti c oper at or s i n C wi t h exam pl es.
10. Discuss different types of Functions.
11. Write a C program to demonstrate the use of user-defined header files and the inclusion
process.
12. Write 2 differences between interpreter and compiler
13. Explain scope of global and local variable in C programing language with proper example.
14. Write a program to accept the temperature in Celsius and convert it to Fahrenheit.
15. Draw a flowchart.
16. Describe working principle of switch case with flowchart.
17. Write the algorithm to find out if a given character is vowel and consonant.
18. What is the difference between the local variable and global variable in C?
19. Write a simple code to take the input of a 2-D array.
20. What is function prototype? Write different functions to perform different arithmetic
operation on integers and call them from main.
21. Write a program to print this pattern.

22. Write a program to print this pattern.

23 Write a program to accept the number from the user and check if the number is palindrome or
not.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy