#include
#include
void main()
{
clrscr();
for (int i=1;i<=5;i++) // this for loop controls the line
{
for(int
j=1;j<=i;j++) // this for loop controls the values(1,12,123..)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
int main (void) { puts ("1 121 1331 14641"); return 0; }
int main (void) { puts ("1 121 12321"); return 0; }
There is no such thing as a "magic number". You are probably thinking of magic squares where the sum of each row, column and major diagonal has the same "magic" value.
REMPATTERNS (not necessary) CLS FOR I = 1 TO 5 STEP +1 FOR J = 1 TO I STEP+1 PRINT J NEXT J PRINT NEXT I END Hope you find this helpful :)
====== FOR tablesNo%=1 TO 12 CLS PRINT "PROGRAM: "; tablesNo%; "X Tables:-" PRINT FOR timesNo%=1 TO 12 PRINT timesNo%; " X "; tablesNo%; " = "; timesNo%*tablesNo% NEXT PRINT PRINT "Press [SPACEBAR] key to continue..." SLEEP NEXT END
write a program to print the series 1/12+1/22+.........+1/n2 ?
num%=9 CLS PRINT "The square of: "; num%; " = "; num%*num% END
// example of 1..12x12 table for($i = 1; $i <= 12; $i++) { for($j = 1; $j <= 12; $j++) { print ($i * $j) ." "; } print "\n"; }
1, 11, 121, 1331.
1, 11, 121, 1331.
1212 = 14,641 The factors of 14,641 are 1, 11, 121, 1331, and 14641. The prime factors of 14,641 are 11, 11, 11, and 11. The prime factorization of 14,641 is 11 x 11 x 11 x 11 = 114
1, 2, 11, 22, 121, 242, 1331, 2662.
1,331 = 1 x 1,331and1,331 = 11 x 121
buy aprinter and somepaper and then go on wordput numbers in and click print and click color and youhave your numbers
1, 11, 13, 121, 143, 169, 1331, 1573, 1859, 17303, 20449, 224939
The positive integer factors of 2662 are: 1, 2, 11, 22, 121, 242, 1331, 2662
1 x 6655, 5 x 1331, 11 x 605, 55 x 121.
#include<stdio.h> #include<conio.h> void main() { int i,j,sp=0; clrscr(); for(i=5;i>=1;i--) { for(j=1;j<sp;j++) printf(" "); for(j=1;j<=i;j++) printf("*"); printf("\n"); s++; } getch(); }
A number with exactly five factors is a number that is a prime number raised to the fourth power (p4). The factors are 1, p, p2, p3, and p4. Example: The 5 factors of 54 = 625 are 1, 5, 25, 125, and 625. The 5 factors of 74 = 2401 are 1, 7, 49, 343, and 2401. The 5 factors of 114 = 14641 are 1, 11, 121, 1331, and 14,641.
1 x 121 = 121 2 x 121 = 242 3 x 121 = 363 4 x 121 = 484 5 x 121 = 605 6 x 121 = 726 7 x 121 = 847 8 x 121 = 968 9 x 121 = 1089 10 x 121 = 1210 11 x 121 = 1331 12 x 121 = 1452