#include <stdio.h> int main() { printf("AP SERIES CREATOR\n\"); printf("Please Enter The values, To Create Your AP Series \n"); int n; printf("Enter The Value Of N'th Term : "); scanf("%d",&n); int m; printf("Enter The Starting Number of AP : "); scanf("%d",&m); int p; printf("Enter The Defferance Between Two Numbers Of AP : "); scanf("%d",&p); printf("Your AP Series Is : \n"); for(int i=m;i<=(2*n-1);i=i+p){ printf("%d\t",i); } return 0; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter