C_PROG_LAB_ASSIGNMENT_2.pdf
1
Computer Programming Assignment-II 1. Compile and execute all the programs discussed in lecture classes held during second week. 2. Write a program to find out the smallest of three numbers. 3. Write a program to calculate the square of those numbers only whose least significant digit is 5. 4. Write a program to find the roots of a quadratic equation using if else condition. 5. Read the values of a, b, c through the keyboard. Add them and after addition check if it is in the range of 100 - 200 or not? 6. Write a C program to find out the number of days in a month using switch statement. 7. Illustrate the use of goto statement for evaluating square root of five numbers.
-
Upload
girish-joshi -
Category
Documents
-
view
213 -
download
0
description
Programming Questions
Transcript of C_PROG_LAB_ASSIGNMENT_2.pdf
Computer Programming
Assignment-II
1. Compile and execute all the programs discussed in lecture classes held during second
week.
2. Write a program to find out the smallest of three numbers.
3. Write a program to calculate the square of those numbers only whose least significant
digit is 5.
4. Write a program to find the roots of a quadratic equation using if else condition.
5. Read the values of a, b, c through the keyboard. Add them and after addition check if it is
in the range of 100 - 200 or not?
6. Write a C program to find out the number of days in a month using switch statement.
7. Illustrate the use of goto statement for evaluating square root of five numbers.