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

is it possible to create your own header files?

1107


Explain what is the difference between a free-standing and a hosted environment?

1189


How do I get a null pointer in my programs?

1118


What are the applications of c language?

1082


Explain null pointer.

1128


What is the difference between fread buffer() and fwrite buffer()?

1188


What is the most efficient way to count the number of bits which are set in an integer?

1068


Explain what header files do I need in order to define the standard library functions I use?

1175


What are the parts of c program?

1103


What is storage class?

1086


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.

1942


What is the difference between local variable and global variable in c?

1239


can we change the default calling convention in c if yes than how.........?

2541


What does c mean?

1059


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

1055