Tuesday, March 5, 2024

6. Multiplication table of n by user :—


#include<stdio.h>

int main()

{

    int i,j,n;

    printf("enter value of n ");

    scanf("%d",&n);

    for(i=1,j=n;i<=10;i++)

    {

        printf("%d×%d=%d\n",i,j,i*j);

    }

    return 0;

}


No comments:

Post a Comment