SHARE
TWEET

doppio,triplo (selezione a una via)

adventuretimeh Dec 9th, 2019 (edited) 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  5.  
  6. int main(int argc, char *argv[]) {
  7. int num,doppio,triplo;
  8. printf("\ndammi un numero");
  9. scanf("%d",&num);
  10. if(num>0)
  11. {
  12. printf("\nnumero %d",num);
  13. doppio = num*2;
  14. printf("\n doppio %d",doppio);
  15. int x=7;
  16. printf("\n numero x vale %d",x);
  17. }
  18. triplo=num*3;
  19. printf("\n triplo vale %d",triplo);
  20.     return 0;
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top