question

Rajit avatar image
Rajit asked

Java questions

Provide the correct input to have the program print the sentence:


Exactly! Good Job.


Before submitting your answer, please check its correctness by executing the code.


#include <stdio.h>


#include <inttypes.h>


#include <stdlib.h>


static int64_t metallica[] = { 32538, 37741, 89540, 14627, 34272, 58765 );


const static int N sizeof (metallica) /sizeof (*metallica);


static void fail() {


puts ("Nope!"); exit (EXIT_FAILURE);


} static void the beatles (int64_t h, int64_t s, int64_t i) ( if (hi/ 7 + 3s / 11 )


fail();


}


static void anthrax (int 2, int64_t j) { int64_t p = j; for(; z<N; ++z) { if ((z % 2) == 0) p+ metallica [z];


continue;


if (p = 69857) fail();


static void eagles (int k, int64_t d) {


if (k<N) f


if (k & 2)


eagles (++k, d);


else eagles (k+ 1, d* metallica [k]);


} else if (d != 1269229500)


fail();


} int main() {


int64_t a, e, y;


printf("Please enter the right three numbers: "); fflush(stdout);


if (scanf("%" SCNd64 " " SCNd64 " "SCNd64, &a, &e, &y) != 3)


fail();


metallica [0] = a;


metallica [5] = e;


metallica [4] = y;


anthrax (0, 15916);


eagles (1, 9);


the beatles (a, e, y); puts ("Exactly! Good job.");

homeworkoracle-java
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.