4
Answers

sum of squares between 1-100 ?

SUNIL GUTTA

SUNIL GUTTA

11y
5.1k
1
Hi

Well i am trying to convert vb code to C# .. i know how to do it but first of all i need code for the fallowing any help please 


A perfect square us a number that is the square of another integer: 1, 4, 9 and 16 are examples of perfect squares.

1. Using a Do While loop, display all the numbers between 1 and 100 that are perfect squares.

2. Using a For ... Next loop, display all the numbers between 1 and 100 that are perfect squares.

Answer should be like : 1, 4, 9, 16, 25, 36, 49, 64, 81, 100


Cheers mates 


Answers (4)