1) Write a program that asks mark in any three subjects and display the message "Result Pass" if the input number is greater than 40.
Output
2) Write a program that asks any two numbers and display the greater one.
Output
3) Write a program that checks whether the supplied number is odd or even.
Output
4) Write a program that asks any two numbers and display the difference between the greater and smaller one.
Output
5)Write a program that asks your age and tell whether you eligible to vote or not.[A person who is 18 years old or above is eligible to vote.]
Output
6) Write a program to print the smallest number among 3 input numbers.
Output
7) Write a program that asks the marks in 3 different subjects and display message pass or fail.[The marks for each subject is 40.]
Output
8) Write a program using FOR...NEXT statement to print natural number up to 15.
Output
9)Write a program using FOR....NEXT statement to print even number from 2 to 20.
Output
10)Write a program using FOR...NEXT statement to print first 10 odd numbers.
Output
11) Write a program using FOR...NEXT to generate numbers: 2, 5, 8, 11, ..........32.
Output
12)Write a program to print numbers; 100, 95, 90.......5 using FOR...NEXT statement.
Output
13) Write a program to print sum of first 15 natural numbers using FOR...NEXT statement.
Output
14)Write a program to print sum of even numbers from 2 to 10 using FOR...NEXT statement.
Output
15)Write a program to print sum of odd numbers between 1 to 21 using FOR.....NEXT statement.
Output
16)Write a program to print even number from 20 to 40.
Output
17)Write a program to find the product of first 10 natural numbers.
Output
18)Write a program to generate multiplication table of input number.
Output
19)Write a program to print numbers 1, 8, 27.......1000.
Output
No comments:
Post a Comment