Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain bit masking in c?

1093


Can two or more operators such as and be combined in a single line of program code?

1326


Write a program to print ASCII code for a given digit.

1054


Explain what is the difference between functions getch() and getche()?

1002


What is the value of uninitialized variable in c?

992


Write a program to swap two numbers without using a temporary variable?

1091


When is the “void” keyword used in a function?

1438


develop algorithms to add polynomials (i) in one variable

2124


How to write a code for reverse of string without using string functions?

2093


Is null a keyword in c?

1150


How many keywords are there in c?

1037


How is a macro different from a function?

1134


Mention four important string handling functions in c languages .

1059


Explain what are the standard predefined macros?

1088


Explain what happens if you free a pointer twice?

1036