Message from C, C++ talks

July 2019

— Tbh 100%

— How to print a pattern for number
Suppose the number is 5 then it should print the pattern as :
1
2 4
3 9
4 16
5

Message permanent page

— 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);
}

— 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

Message permanent page

— 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++