Message from C, C++ talks

July 2019

— Can anyone explain

— How to print the star pattern for given number, if number is 3 it should print
*

*

— Simply a for loop
Example in C:
int square;
for (int i = 1; i <= x; i++){
square = pow(i, 2);
if(i == 1 || i == x)
printf("%d\n", i);
else
printf("%d %d\n", i, square);
}

Message permanent page

— If you want to declare square only in the for loop scope you can modify the for loop accordingly:
for(int i = 1, square; ....

Message permanent page

— 

Hi

can somebody help me about selecet easy programming language used easy DB to make data entries softawre pc

— Hm

— I don't think there is easy programming language... Maybe sql

— Sql ==java?

— Definitely not

— What do you want?

— Not at all

— I want to start with easy language to start make DATA ENRIES software

— Don't chose c++

— Mmmm, what?

— !