program in c to print 1 to 100 without using loop

Answer Posted / darshana

Sub Main()
Dim i, j As Integer
Console.WriteLine("enter i numbers")
i = Console.ReadLine()

Console.WriteLine("enter j numbers")
j = Console.ReadLine()
Console.WriteLine()
new1(i, j)

End Sub

Sub new1(ByVal i As Integer, ByVal j As Integer)

Dim num As Integer = i

If num > j Then
Console.WriteLine("end")
Else


Console.WriteLine(num)
num = num + 1
new1(num, j)
End If



End Sub

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the newline escape sequence?

581


what is the format specifier for printing a pointer value?

609


What is the use of a semicolon (;) at the end of every program statement?

764


What is a good data structure to use for storing lines of text?

590


How can you find the day of the week given the date?

610






Does c have an equivalent to pascals with statement?

570


What is atoi and atof in c?

612


What does 3 mean in texting?

608


What is function pointer c?

584


Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

1420


What functions are used in dynamic memory allocation in c?

591


What is the meaning of c in c language?

592


Subtract Two Number Without Using Subtraction Operator

350


Why isn't any of this standardized in c? Any real program has to do some of these things.

621


What does %2f mean in c?

672