Hi,How to Print 1 to 100 numbers using MVC 4/5?
print format:
1 11 ........91
2 12 92
3 13 93
4 14
5 15
6
7
8
9
10 20 ........100
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Govinda Rajulu YemineniRank #1,517 · 1K reputationPosted Jul 21, 2015, 10:46 PM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Jul 21, 2015, 10:31 PM EDT
");
bhimani samba7 reputationPosted Sep 2, 2015, 3:45 AM EDT
Govinda Rajulu YemineniRank #1,517 · 1K reputationPosted Sep 14, 2015, 3:22 AM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted Jul 21, 2015, 10:43 PM EDT
This can be achieve by using for loop in razor view
@for(var i = 0; i < 10; i++)
{
Line @i
}hope this will help you.