Computer Science, asked by sakshisakhare42, 7 months ago

#include<iostream.h>
int main ()
{
int a,d,n;
std::cout<<"enter a,d,n of AP:";
std::cin>>a>>d>>n; std::cout<<std::endl<<"terms of AP: a= "<<a<< ",d= "<<d<< ",n= "<<n<<std::endl;
do { std::cout<<a<<"\t", a=a+d;
}
while(n-->1);
std::cout<<std::endl;
}​

Answers

Answered by jay419
0

Answer:

what is this did u try to write codes

Similar questions