Joao_Joao

Questão 4 Lista de Exercícios IFPB

Apr 25th, 2022 (edited)
76
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main() {
  5.   int n;
  6.   printf("Digite um numero: ");
  7.   scanf("%d", &n);
  8.   printf("Dobro de %d: %d\n", n, n*2);
  9.   printf("Triplo de %d: %d\n", n, n*3);
  10.   printf("Quadrado de %d: %d\n", n, n*n);
  11.   printf("Cubo de %d: %d\n", n, n*n*n);
  12.   printf("Raiz Quadrada de %d: %.1lf\n", n, sqrt(n));
  13.  
  14.   return 0;
  15. }
RAW Paste Data Copied