Computer Science, asked by Anonymous, 2 months ago

Write a programming in QBasic to print the series 1, 4, 9, 16, 25……. up to 30.​

Answers

Answered by SamidhaBartakke
2

Answer:

..

Explanation:

DECLARE SUB SERIES()

CLS

CALL SERIES

END

SUB SERIES

FOR I = 1 TO 29

PRINT I^2

NEXT I

END SUB

Answered by divyadivi1206
0

Answer:

Explanation:

#include<iostream>

using namespace std;

int main()

{

int n,i;

scanf("%d",&n);

for(i=1;i<=n;i++)

{

printf("%d ",i*i);

}

return 0;

}

Similar questions