Skip to main content

example :- Enter the number you want multiplication table of

#include<stdio.h>
int main()
{
  int x ;
   printf("Enter the number you want multiplication table of\n");
   scanf("%d",&x);
   printf("Multiplication table of %d Is \n",x);
   printf("%d*1=%d\n",x,x*1);
   printf("%d*2=%d\n",x,x*2);
   printf("%d*3=%d\n",x,x*3);
   printf("%d*4=%d\n",x,x*4);
   printf("%d*5=%d\n",x,x*5);
   printf("%d*6=%d\n",x,x*6);
   printf("%d*7=%d\n",x,x*7);
   printf("%d*8=%d\n",x,x*8);
   printf("%d*9=%d\n",x,x*9);
   printf("%d*10=%d\n",x,x*10);
      return 0;
}

Comments

Popular posts from this blog

example of typecasting in c

/*Type Casting in C Typecasting allows us to convert one data type into other. */ //simple example to cast int value into the float. #include <stdio.h>    int   main (){   float   f = ( float ) 9 / 4 ;     printf ( "f : %f \n " ,  f  );     return   0 ;   }