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 are pointers? What are stacks and queues?
What is a structural principle?
What is an array? What the different types of arrays in c?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
What do the functions atoi(), itoa() and gcvt() do?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
Why we not create function inside function.
What does *p++ do? What does it point to?
What is c method?
Why are all header files not declared in every c program?
What is the data segment that is followed by c?
What is the sizeof () a pointer?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
Who invented bcpl language?