Pattern:1*5=5 2*5=10 3*5=15 4*5=20
Write a program to print
1*5=5
2*5=10
3*5=15
4*5=20
5*5=25
#include<stdio.h>
main()
{
int i=1,n,c=5;
printf("\n\tEnter the range value:");
scanf("%d",&n);
printf("\nThe pattern is:\n");
while(i<=n)
{
printf("%d * %d=%d\n",i,c,i*c);
i++;
}
}
It's not pattern it's Multiplication of number 5
ReplyDelete