Is output ke liye code banana hai C language mein
222222
999999
222222
999999
Answers
Answered by
0
Answer:
#include <stdio.h>
void main()
{ long int n,i,t=9;
int sum =0;
printf("Input the number or terms :");
scanf("%ld",&n);
for (i=1;i<=n;i++)
{ sum +=t;
printf("%ld ",t);
t=t*10+9;
}
printf("\nThe sum of the series = %d \n",sum);
}
Explanation:
Similar questions