Tabuada - Linguagem C

#include <stdio.h>
#include <stdlib.h>
#include <locale.h>

void main(void) {
    system("title Tabuada:");
    system("color 1f");

    setlocale(LC_ALL, "ptb");

    int n, i, r;

    printf("Digite um número natural entre 1 e 10: ");
    scanf("%d", &n);
    for(i=1; i<=10; i++) {
        r = n * i;
        printf("\n%2d x %2d = %2d",n,i,r);
    }
    printf("\n\n");
    system("pause");
}

Comentários

  1. California Lottery Winning Numbers SuperLotto Plus rb88 rb88 10bet 10bet ボンズ カジノ ボンズ カジノ 611How to Make Habanero Pain Is Good: How to Make Habanero

    ResponderExcluir

Postar um comentário