Computer Science, asked by Vivm, 1 year ago

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 ayushaju
3
if any mistakes then avoid it and if it correct then give me thanks
Attachments:
Similar questions