This Example code is written is basic. The counter variable is the Number you want to reach. You use a for loop to print from 1 to the counter number. Then you increase the counter number by 1 then go through your for loop again until you reach your counter number, and the process keeps going.
Counter as Integer
Counter= 1
Do
For Number = 1 to Counter
Print Number
Next Number
Counter=Counter+1
Loop
hi question is here, 1 1 2 1 2 3 1 2 3 4
1 2 3
12345 1234 123 12 1
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 program to multily 3*3 matrix.
Write a simple program in finding roots x^3-6x^2+11x-6.1=0
int main() { for(int i = 1; i
You should use some sort of loop. E.g. for (i=1; i<=5; ++i) printf ("%d ", i*(i+1)/2);
It is 2 and 1/2 which you can write 2 1/2
1. Write the program 2. Compile and link it 3. Execute it by entering its name at command prompt
1 = 1/1 or 2/2 or 3/3 so on
1