To print lucky numbers in java, you must give the following program:
class example
{
static public void main(String[] args)
{
System.out.println("Lucky number is your favourite number which is your DOB");
}
}
Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.
#include
you do this 10 print "0112358132134" use the whole of the thing
Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end
10 cls 20 end 30 next 40 print
Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.
You can use int i; for (i = 10; i <= 50; i += 2) {//print i} as a program to print even numbers between 10 and 50.
#include
Start print "the sum of all even numbers is infinite" end
you do this 10 print "0112358132134" use the whole of the thing
Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end
#include(stdio.h) int main ()
Write a c program to print the 100 to 1 nos
read num1 read num2 sum = num1 num2 print highest value
Add the numbers into one variable as you read them in. But if you prefer, you can read the numbers into an array and then use a loop to add the numbers together.
10 cls 20 end 30 next 40 print
Reference:http:cprogramming-bd.com/c_page2.aspx# strange number