Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdlib.h>
- #include<stdio.h>
- int main()
- {
- int x, tp;
- printf("Digite um valor: ");
- scanf("%d", &x);
- tp = 3 * x;
- printf("Triplo de %d: %d \n", x, tp);
- do
- {
- printf(" - %d", x);
- x++;
- }while(x<=tp);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement