Facebook
From Adjowa Asamoah, 1 Month ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 157
  1. size(200, 200);
  2. int n = 7;
  3. int factorial = 1;
  4. for(int i = 1; i <= n; i++){  // Changed the loop condition and starting value of i
  5.   factorial = factorial * i;
  6. }
  7. textAlign(CENTER);
  8. text(factorial, 100, 100); // Removed quotes around "factorial" to display the value of factorial
  9.  

Replies to part 1 rss

Title Name Language When
Re: part 1 Adjowa Asamoah text 1 Month ago.