Print Friendly and PDF
Q No. 1 Write a program that takes a quadratic equation as input and return whether it has two distinct roots, a double root, or not roots Using if else Condition.
Q No. 1 Write a program that takes a quadratic equation as input and return whether it has two distinct roots, a double root, or not roots Using if else Condition.

Solution:
1

Q No.2  write a program that reads a number, check if this number is divisible by 4 then display “OK”, otherwise display “ failure “.


Solution.

Q No.3 Write a program to display alphabet pattern like 'U' with an asterisk.
Solution:


Q No.4 Create a program to ask the user for a symbol and answer if it is a (lowercase) vowel, a digit, or any other symbol, using "switch".

Solution:

 
Q No.5 write an application that keeps track of our grocery list. It should save our grocery needs into an array, and then print the grocery list out for us when we run the application
 "eggs", "milk", "bread", "bananas", "cereal", "rice", "yogurt"

Solution:


zubairsaif

Zubair saif

A passionate writer who loves to write on new technology and programming

Post A Comment:

0 comments: