Zone for ultimate tech and study update
Advertisement
If n=5 , then output will be as 5 10 15 20 25
#include<conio.h>
#include<stdio.h>
void main()
{clrscr();
int i,n,a;
printf("enter numbers=");
scanf("%d",&n);
for(i=1;i<=n;i++)
{ a=5;
a=a*i;
printf("\n%d",a);
}
getch();}
No comments:
Post a Comment
Please comment bellow. Share your knowledge
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Please comment bellow. Share your knowledge