Program Logic
Program Logic
#include<iostream>
#include<iomanip>
#include<conio.h>
int main()
//variables declared, variables name can be any name but must be logical / meaningful
//inix stands for initial value of x, iniy stands for initial value of y, inij stands for initial value of j, inik
stands for initial value of k
int inix,iniy,inij,inik,y;
cout<<"Enter initial value for table"<<endl; //prints message for taking input and goto next line
cout<<"Enter Final value for table"<<endl; //prints message for taking input and goto next line
cout<<"Enter range"<<endl; //prints message for taking input and goto next line
for(inij=1;inij<=inik;inij++) //second loop will start count from 1 to the range given for e.g 10 so it will
loop from 1 to 10
// after 10 iterations loop number 2 ends and control is transferred to loop number 1, value is increased
from 2 to 3, condition is checked whether 3 <=4 condition is true again control is transferred to loop
number 2 and table of 4 is written and so on, when both loops ends the final result is displayed which is
table of 2,3 and 4