c).Rewrite the below given program using for loop.[3]
# include
void main ( )
{
int i=1,sum =0 ;
while (i<=10)
{
sum =sum + i ;
i++ ;
}
cout << sum ;
Answers
Answered by
3
if any mistakes then avoid it and if it correct then give me thanks
Attachments:
Similar questions