begindeclare @n int,@i int,@sum int;set @n=100;set @i=1;set @sum=0;while @i<=100beginset @sum=@sum+@i;set @i=@i+1;endprint @sum;end;