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

What are pointers? What are stacks and queues?

1217


What is a structural principle?

1241


What is an array? What the different types of arrays in c?

1253


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....

2044


What do the functions atoi(), itoa() and gcvt() do?

1245


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

1049


Why we not create function inside function.

2253


What does *p++ do? What does it point to?

1122


What is c method?

1045


Why are all header files not declared in every c program?

1148


What is the data segment that is followed by c?

1137


What is the sizeof () a pointer?

1047


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2843


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1918


Who invented bcpl language?

1247