Wednesday, August 23, 2017

Teej vacation project work

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.







2)  Write a program that asks any two numbers and display the greater one.











3)Write a program that checks whether the supplied number is odd or even.













4) Write a program that asks any two numbers and display the difference between the greater and smaller one.











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.]














6) Write a program to print the smallest number among 3 input numbers.













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.]



8) Write a program using FOR...NEXT statement to print natural number up to 15.


















9)Write a program using FOR....NEXT statement to print even number from 2 to 20.











10)Write a program using FOR...NEXT statement to print first 10 odd numbers.

 





11) Write a program using FOR...NEXT to generate numbers: 2, 5, 8, 11, ..........32.




12)Write a program to print numbers; 100, 95, 90.......5 using FOR...NEXT statement.




13) Write a program to print sum of first 15 natural numbers using FOR...NEXT statement.





14)Write a program to print sum of even numbers from 2 to 10 using FOR...NEXT statement.








15)Write a program to print sum of odd numbers between 1 to 21 using FOR.....NEXT statement.












16)Write a program to print even number from 20 to 40.










17)Write a program to find the product of first 10 natural numbers.










18)Write a program to generate multiplication table of input number.













19)Write a program to print numbers 1, 8, 27.......1000.












No comments:

Post a Comment

Experience of COVID-19 and the cancellation of SEE.

As we know, that this pandemic disease has started from the Wuhan district of China. This viruswvirus discovered out on 31st December 2019 ...