mani_singh 19 Newbie Poster

thank you so much for the help. took me so long but i finally got it.

i = n1;
	 val = 0;
	 while (i < n2) 
	 {    
		 val = val + i;        
	 	 i = i + 1; 
	 }
	  val = val+n2;
it works
Salem commented: Congrats! +19