Programme qui affiche les multiplications groupees selon n






                            Programme qui affiche les multiplications groupees selon n

un-programme-qui-affiche-les-multiplications-groupees-selon-n


///tutodev1.blogspot.com
///karara Mohamed
#include <stdio.h>
#include <stdlib.h>
void mult_table(int n)
{
    int i,j,m;
     printf("\t");
     for(i=0;i<n;i++)
    { printf("%d   ",i+1);}
     printf("\n");
    for(i=0;i<n;i++)
    { printf("\n%d*",i+1);
    if(i+1<10)printf("      ");
    else printf("    ");
       for(j=0;j<n;j++)
       {
           m=(i+1)*(j+1);
       printf("%d",m);
       m=(i+1)*(j+2);
       if(m>=10)printf("  ");
       else printf("   ");
       }






printf("\n");
    }
}
int main()
{
    int n;
    printf("Donne n: ");
    scanf("%d",&n);
mult_table(n);
system("pause>NULL");
    return 0;
}