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
Can the size of an array be declared at runtime?
Why cant I open a file by its explicit path?
What is header file in c?
What are keywords in c with examples?
How do you do dynamic memory allocation in C applications?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
Is c procedural or object oriented?
What is floating point constants?
Define circular linked list.
What is the difference between a function and a method in c?
What does double pointer mean in c?
Differentiate between a structure and a union.
What is 2 d array in c?
How can I handle floating-point exceptions gracefully?
What are the different types of control structures in programming?