0

 

2nd Year Computer Important C Programmers For Lahore Board  Final Papers

 

*C Programming Important Programmers



  1. Write a program that inputs three numbers and displays largest number.
  2. Write a program that adds two numbers and shows the sum on screen.
  3. Write a program that displays counting from 1 to 10 using while loop.
  4. Write a program that accepts distance in kilometers and convert into meter by using functions.
  5. Write a program that displays first five numbers and their sum using while loop.
  6. Write a program that accepts three numbers from the user and displays the minimum number using nested if statement.
  7. Write a program that inputs three numbers from the user and find the smallest in them.
  8. Write a program that displays first five numbers and their cubes using do-while loop.
  9. Write a program that inputs a number from the user and displays the factorial of that number using do-while loop.
  10. Write a program that checks the entered letter is vowel or consonant.
  11. Write a program that prints the digits from 10 to 1.
  12. Write a program that prints the table of that number which is entered by the user.
  13. Write a program that prints the following output using nested for loop:

* * * * *
* * * * *
* * * * *
* * * * *
Write a program that prints the following output using single statement:
*
* *
* * *
* * * *
* * * * *
Write a program that shows the output according to the table which is given below:
 Temperature                                                    Message
Greater than 35                                                   Hot day
Between 25 and 35 (inclusive)                       Pleasant day
Less than 25                                                       Cool day

Post a Comment

 
Top