answersLogoWhite

0

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

namespace printnumber

{

class Program

{

static void Main(string[] args)

{

int i;

for (i = 0; i < 20; i++)

{

Console.Write(i);

Console.Read();

}

}

}

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you print first 10 even number using for loop in q basic?

For N = 1 to 10 Print 2 * N Next N


Write a program using while loop?

//program to find the factorial value f any number using while loop #include&lt;stdio.h&gt; void main() { int i,n,fact=1; printf("Enter the number\n"); scanf("%d",&amp;n); i=n; while (i&gt;=1) { fact=fact*i; i--; } printf("The factorial value=%d",fact); } the above is a program for calculating tha factorial value of any number which is entered by the user


How do you print the multiplication tables in qbasic?

To print multiplication tables in QBasic, you can use nested loops. The outer loop iterates through the numbers 1 to 10 (or any desired range), while the inner loop multiplies the current number by each number in the same range. Here's a simple example: FOR i = 1 TO 10 PRINT &quot;Table of&quot;; i FOR j = 1 TO 10 PRINT i; &quot;*&quot;; j; &quot;=&quot;; i * j NEXT j PRINT NEXT i This code will display the multiplication tables for numbers 1 to 10.


To print 5 45 345 2345 12345 in qbasic programming?

Oh, dude, to print those numbers in QBasic, you can use a simple loop. Just loop from 1 to 5 and print the numbers with spaces in between. It's like making a sandwich, but with numbers instead of bread and cheese. So, like, don't stress, just code it up and hit run. Easy peasy, right?


Write a PLSQL code to print a multiplication table where the input is given by the user in Oracle?

Declare num number(10):=&amp;num; a number(10); counter number:=1; begin for i in 1..10 LOOP a:=num*counter; DBMs_output.put_line(a); Counter:=counter+1; end loop; end;


How do you print 10 ramdom numbers by using for loop?

11


Write a qbasic program to print the squares and cubes of first 10 natural numbers?

10 CLS 20 FOR n = 1 to 10 30 PRINT n, n^2, n^3 40 NEXT n 50 PRINT: PRINT: PRINT "Touch 'x' to go again, any other key to end." 60 INPUT a$ 70 IF a$ = "X" or a$ = "x" THEN 10 80 END


How do you create a times table using perl?

To create a times table using Perl, you can use nested loops. The outer loop iterates through the range of numbers for which you want the times table, while the inner loop multiplies the current number by each number in that range. Here's a simple example: my $size = 10; # Define the size of the times table for my $i (1..$size) { for my $j (1..$size) { print $i * $j, &quot;\t&quot;; # Print the product followed by a tab } print &quot;\n&quot;; # Print a newline at the end of each row } This code will generate a 10x10 times table.


How do you sum a number's all digit using for loop?

Using for loop we can find sum of digits of a number. Inside the loop just perform Logic Expression 1) rem=num%10. {To find the unit place no. using remainder functon} 2) sum = sum+rem {to find the addition ie output} 3) num=num/10 {to eliminate the added digit} Just repeat these steps in the loop.


How will you print 10 studens name by using while loop statement in QBasic?

cls input "enter a name"; a$ b=1 while b &lt;=1 print a$ b = b+1 wend end


How do you print the middle number of a 3digit number using c?

it is int n=123; printf ("%d", (n/10)%10);


How do you write a programme in basic to assign a number and print its square?

num%=9 CLS PRINT "The square of: "; num%; " = "; num%*num% END