int main() { for(int i = 1; i <= 10; i++)
printf("%d ", i);
return 0;
}
write a program to print the series 1/12+1/22+.........+1/n2 ?
Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.
Write a c program to print the 100 to 1 nos
// example of 1..12x12 table for($i = 1; $i <= 12; $i++) { for($j = 1; $j <= 12; $j++) { print ($i * $j) ." "; } print "\n"; }
Cls print the multiples tables of 1 to 5 for x=1 to 5 for y=1 to 10 print x;"*";y;"=";x*y next y print print next x end
hi question is here, 1 1 2 1 2 3 1 2 3 4
With a nested loop this is fairly simple. Example, in Java: for (int i = 1; i
for (int i=0; i<3; ++i) printf ("1 1 0 "); printf("1\n");
Oh, what a lovely request! In FoxPro, you can create a program to print all prime numbers from 1 to 100 by using a loop to check each number for divisibility only by 1 and itself. If it meets this criteria, you can print it out on the screen. Remember, every number is unique and special, just like a happy little tree in a vast forest.
#include<stdio.h> int main(void) { printf ("1-47-10..........-40\n"); return 0; }
10 CLS 20 FOR N = 1 TO 10 30 PRINT N, N^2, N^3 40 NEXT N 50 PRINT: PRINT "Oooweee! That was such fun!" 60 END
1/107 1/10000000