Advertisement
michael_xgrind

Ex24

Sep 29th, 2014
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. /* 24) Escreva um programa em C que imprima a tabuada (de 1 a 10) para os números
  2. de 1 a 10. */
  3.  
  4. #include "stdio.h"
  5.  
  6. int main(){
  7.     for(int i=1; i<=10; i++) {
  8.         printf("Tabuada do %d:\n", i);
  9.         for(int j=1; j<=10; j++){
  10.             printf("%d x %d = %d\n", i, j, i*j);
  11.         }
  12.         printf("\n");
  13.     }
  14.  
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement