Computer Science, asked by krisshtheawesome, 11 months ago

WAP to display series 1,2,3,4,.....,40​

Answers

Answered by sushiladevi4418
0

Answer:

WAP to display series 1,2,3,4,.....,40​

Explanation:

#include<iostream>  

using namespace std  

int main()  

{  

int i,a=-1,b

for(i=1;i<=40;i+=3)  

{  

a*=-1

b=i

b*=a

cout<<b<<" "

}    

return 0

}

Answered by Anonymous
1

hope it helps!!

#sumedhian ❤❤

Attachments:
Similar questions