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
Explain bit masking in c?
Can two or more operators such as and be combined in a single line of program code?
Write a program to print ASCII code for a given digit.
Explain what is the difference between functions getch() and getche()?
What is the value of uninitialized variable in c?
Write a program to swap two numbers without using a temporary variable?
When is the “void” keyword used in a function?
develop algorithms to add polynomials (i) in one variable
How to write a code for reverse of string without using string functions?
Is null a keyword in c?
How many keywords are there in c?
How is a macro different from a function?
Mention four important string handling functions in c languages .
Explain what are the standard predefined macros?
Explain what happens if you free a pointer twice?