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
is it possible to create your own header files?
Explain what is the difference between a free-standing and a hosted environment?
How do I get a null pointer in my programs?
What are the applications of c language?
Explain null pointer.
What is the difference between fread buffer() and fwrite buffer()?
What is the most efficient way to count the number of bits which are set in an integer?
Explain what header files do I need in order to define the standard library functions I use?
What are the parts of c program?
What is storage class?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
What is the difference between local variable and global variable in c?
can we change the default calling convention in c if yes than how.........?
What does c mean?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above