int i = 2;
while (i <= 1000) {
printf ("%d\n", i);
i++;
}
#include <iostream> int main() { int i=0; while( i<10 ) printf( "%d\n", ++i ); return( 0 ); }
unsigned count = 0;unsigned num=1; do { std::cout << num << std::endl; num +=2; } while (++count<50);
CLS PRINT "PROGRAM: Print squares of all even numbers from 1 to 20" PRINT PRINT "number", "squared" PRINT FOR number% = 1 TO 20 IF number% MOD 2 = 0 THEN PRINT number%, number% * number% END IF NEXT END
#include<stdio.h> main() { int a,i=1; printf("Enter max no"); scanf("%d",&a); do { printf("%d",i); i=i+2; }while(i<=a); }
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, "\t"; # Print the product followed by a tab } print "\n"; # Print a newline at the end of each row } This code will generate a 10x10 times table.
x as int = 0 while x < 50 x = x + 1 print x endwhile
To frame a print without using glass, you can consider using alternative materials such as acrylic, plexiglass, or UV-protective coatings. These options can provide protection for the print while avoiding the use of traditional glass.
public static void main(String args){ int counter = 0; //initialize the counter variable to 0 while (counter < 10){ //while the counter variable is less than 10... counter ++; //increase the counter variable by 1 System.out.println(counter); //print the counter variable } }
//program to find the factorial value f any number using while loop #include<stdio.h> void main() { int i,n,fact=1; printf("Enter the number\n"); scanf("%d",&n); i=n; while (i>=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
For a=InputBox("enter no.") While a > 0 c = a Mod 10 a = a \ 10 End While Next Print(c) End Sub
"While it is possible to use this program to print a book, it is highly recommended to print it with an actual publisher. You will get a much better deal and your book will look a lot more professional."
int i=0; while (i++<n) { /*...*/ }
#include <iostream> int main() { int i=0; while( i<10 ) printf( "%d\n", ++i ); return( 0 ); }
unsigned count = 0;unsigned num=1; do { std::cout << num << std::endl; num +=2; } while (++count<50);
CLS PRINT "PROGRAM: Print squares of all even numbers from 1 to 20" PRINT PRINT "number", "squared" PRINT FOR number% = 1 TO 20 IF number% MOD 2 = 0 THEN PRINT number%, number% * number% END IF NEXT END
cls input "enter a name"; a$ b=1 while b <=1 print a$ b = b+1 wend end
It depends on where the print ad is going to be published. Most magazines are a bit larger than your standard 8.5"x11" piece of paper, while brochures and flyers using print ads can be larger or smaller.