Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 20 lines (17 sloc) 0.286 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#include<stdio.h>

int main()
{

int x,a,b,i,n;
printf("\n Enter the value of n");
scanf("%d",&n);
printf("\n Enter Psoitive integer a");
scanf("%d",&a);
printf("\n Enter the positisve integer b");
scanf("%d",&b);
for(i=1;i<=15;i++)
{
 n= (a*n + b);
 printf("%d\n",n);
}
return 0;
 
 }
Something went wrong with that request. Please try again.