<mosaic.cnfolio.com>
PROGRAM
  1. Pseudocode
  2.  
  3. START
  4. set user candy iventory count to 120
  5. set total PIDGY count to 40
  6. THEN
  7. Multiply LUCKY EGG XP (1000) by total amount of PIDGEYS (40)
  8. THEN
  9. User will find out total XP user can earn while lucky egg is active
  10. END
  11.  
  12.  
  13. 1/2)
  14.  
  15. Correct Code
  16.  
  17. int main( void )
  18. {
  19.    
  20.    int number1, number2;
  21.  
  22.    scanf( "%d %d", &number1, &number2 );
  23.    printf( "The amount of pidgey candy the user has is %d", number1 * number2 );
  24.    
  25.    printf( ", this will be accountable for 40 Pidgey evolutions in total");
  26.    
  27.     int number4, number3;
  28.    
  29.    scanf( "%d %d", &number3, &number4 );
  30.    printf( " and The maximum xp a user can get within the 30min lucky egg span is %d", number3 * number4 );
  31.  
  32. }
  33.  
  34. 3)
  35.  
  36. Incorrect Code
  37.  
  38. int main( void )
  39. {
  40.    
  41.    int number1, number2;
  42.  
  43.    scanf( "%d %d", &number1, &number2 );
  44.    printf( "The amount of pidgey candy the user has is %d", number1 * number2 );
  45.    
  46.    printf( ", this will be accountable for 4 Pidgey evolutions in total");
  47.    
  48.     int number4, number3;
  49.    
  50.    scanf( "%d %d", &number3, &number4 );
  51.    printf( " and The maximum xp a user can get within the 30min lucky egg span is %d", number3 * number4 );