Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int i,j,n=1,value;
- int infinity = 0;
- while(infinity == 0){
- printf("\nEnter the number which you want to tablize: ");
- scanf("%d", &i);
- printf("Enter the digit where you want end your table: ");
- scanf("%d", &j);
- while(n<=j){
- value=i*n;
- printf("%d x %d=%d\n", i,n,value);
- n++;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment