Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- float a=0;
- int b=0;
- float soma=0;
- float subt=0;
- float mult=0;
- float div=0;
- printf("\n\n\tDigite um numero: ");
- scanf("%float", &a);
- for (b=0;b<=10;b++){
- soma = a + b ;
- printf("\n%.0f + %d = %.0f\n", a, b, soma);
- }
- printf("\n\n\n");
- for (b=0;b<=10;b++){
- subt = a - b ;
- printf("\n%.0f - %d = %.0f\n", a, b, subt);
- }
- printf("\n\n\n");
- for(b=0;b<=10;b++){
- mult = a * b ;
- printf("\n%0.f * %d = %.0f\n", a, b, mult);
- }
- printf("\n\n\n");
- for(b=1;b<10;b++){
- div = a / b;
- printf("\n%.0f / %d = %.2f\n", a, b, div);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement