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
What is the newline escape sequence?
what is the format specifier for printing a pointer value?
What is the use of a semicolon (;) at the end of every program statement?
What is a good data structure to use for storing lines of text?
How can you find the day of the week given the date?
Does c have an equivalent to pascals with statement?
What is atoi and atof in c?
What does 3 mean in texting?
What is function pointer c?
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
What functions are used in dynamic memory allocation in c?
What is the meaning of c in c language?
Subtract Two Number Without Using Subtraction Operator
Why isn't any of this standardized in c? Any real program has to do some of these things.
What does %2f mean in c?