Write a program that allow to user enter number then print it:
Example :
Input : 5
Output : 5
Write a program that take number from user then print yes if that number can divide by 3 and 4 otherwise print no:
Example 1 :
Input : 12
Output : Yes
Example 2 :
Input : 9
Output : No
Write a program that allows the user to insert 2 integers then print the max:
Example 1 :
Input : 3, 5
Output : 5
Example 2 :
Input : 10, 7
Output : 10
Write a program that allows the user to insert an integer then print negative if it is negative number otherwise print positive:
Example 1 :
Input : -5
Output : negative
Example 2 :
Input : 10
Output : positive
Write a program that take 3 integers from user then print the max element and the min element.
Example 1 :
Input : 7, 8, 5
Outputs : max element = 8, min element = 5
Example 2 :
Input : 3, 6, 9
Outputs : Max element = 9, Min element = 3
Write a program that allows the user to insert integer number then check If a number is oven or odd
Example 1 :
Input : 8
Outputs : even
Example 2 :
Input : 7
Outputs : odd
Write a program that take character from user then if it is vowel chars (a,e,I,o,u) then print vowel otherwise print consonant
Example 1 :
Input : O
Outputs : vowel
Example 2 :
Input : b
Outputs : Consonant
Write aprogram that allows user to insert integer then print all numbers between 1 to that’s number
Example 1 :
Input : 5
Outputs : 1, 2, 3, 4, 5
Write a program that allows userto insert integerthen print a multiplication table up to 12.
Example 1 :
Input : 5
Outputs : 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
Write aprogram that allows to user to insert number then print all even numbers between 1 to this number
Example 1 :
Input : 15
Outputs : 2, 4, 6, 8, 10, 12, 14
Write aprogram that take two integers then print the power
Example 1 :
Input : 4^3
Outputs : Hint how to calculate 4^3 = 4 * 4 * 4 = 64
Write a program to enter marks of five subjects and calculate total, average and percentage.
Example 1 :
Input : Enter Marks of five subjects: 95, 76, 58, 90, 89
Outputs : Total marks = 435, Average Marks =87, Percentage =87
Write a program to input month number and print number of days in that month.
Example 1 :
Input : Month Number: 1
Outputs : Days in Month: 31
Write a program to input marks of five subjects Physics, Chemistry, Biology, Mathematics and Computer , Find percentage and grade
Example 1 :
Input : Month Number: 1
Outputs :
Percentage >= 90%: Grad A
Percentage >= 80%: Grad B
Percentage >= 70%: Grad C
Percentage >= 60%: Grad D
Percentage >= 40%: Grad E
Percentage less than 40%: Grad F