Header Ads Widget

Practice question based on if-else

 Here in this article we will discuss some questions based on the decision statement (if-else ) . I will also provide the solution of all the questions so by clicking on the links you can check our solutions . And if you have no any idea about the decision statements then check this . So lets get start 

1. Write a program to find the maximum between two numbers :   C    |     C++    |    Python  

2. Write a program to find the minimum between two numbers :   C    |     C++    |    Python   

3. Write a program to find the maximum among three numbers :   C    |     C++    |    Python   

4. Write a program to check whether a number is negative, positive or zero :   C    |     C++    |    Python  

5. Write a program to check whether a number is divisible by 5 and 11 or not :   C    |     C++    |    Python  

6. Write a program to check whether a number is even or odd :   C    |     C++    |    Python  

7. Write a program to check whether a year is leap year or not :   C    |     C++    |    Python  

8. Write a program to check whether  a character is alphabet or not :   C    |     C++    |    Python  
9. Write a program to input any alphabet and check whether it is vowel or consonant :   C    |     C++    |    Python  

10. Write a program to check whether a character is uppercase or lowercase alphabet:   C    |     C++    |    Python  

11. Write a program to input week number and print week day :   C    |     C++    |    Python  




Recommended Post :-

HCL Coding Questions:-

Capgemini Coding Questions:-

Companies interview:-

Full C course:-    

Key points:-

Cracking the coding interview:-

 Array and string:-

Tree and graph:-

Hackerearth Problems:-

Hackerrank Problems:-

Data structure:-

 MCQs:-

Post a Comment

0 Comments