Imprimir a tabuada de qualquer número n (n é informado pelo usuário) em c++?

Follow
  • Follow publicly
  • Follow privately
  • Unfollow
Best Answer
#include <stdio.h>
void main(void)
{
int n,i;
clrscr();
printf("Digite a tabuada desejada:");
scanf("%d",&n);
clrscr();
for (i=1;i<=10;i++)
{
printf("%d X %d = %d\n",n,i,n*i);
}
printf("\n\nPressione qualquer tecla...");
getch();
}
  • Rate
  • Comment
Sign In 

to add your answer

No other answers

Who is following this question?

    %
    BEST ANSWERS
    Member Since:
    Points: Points: Level
    Total Answers:
    Points this week:
    Follow
     
    Unfollow
     
    Block
     
    Unblock