2nd Year Computer Important C Programmers For Lahore Board Final Papers
*C Programming Important Programmers
- Write a program that inputs three numbers and displays largest number.
- Write a program that adds two numbers and shows the sum on screen.
- Write a program that displays counting from 1 to 10 using while loop.
- Write a program that accepts distance in kilometers and convert into meter by using functions.
- Write a program that displays first five numbers and their sum using while loop.
- Write a program that accepts three numbers from the user and displays the minimum number using nested if statement.
- Write a program that inputs three numbers from the user and find the smallest in them.
- Write a program that displays first five numbers and their cubes using do-while loop.
- Write a program that inputs a number from the user and displays the factorial of that number using do-while loop.
- Write a program that checks the entered letter is vowel or consonant.
- Write a program that prints the digits from 10 to 1.
- Write a program that prints the table of that number which is entered by the user.
- 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