Vad ca tu stii multe despre ce se face la facultate, cred ca esti un fel de Albert Einstein, la 16 ani pe care ii ai tu. Crezi ca ai lumea la picioare acum ca esti pe banii parintilor, dar lasa ca o sa te lovesti tu de realitate. Nu ma cobor la nivelul tau, pinochio.
@@VeveX, zi-mi ce stii sa faci de aici, daca esti asa destept
Problem 1. Calculate, for any value n, read from the console, the sum and product of the first n natural numbers using for statement. Execute the program step by step using also the Watch window appropriately.
Problem 2. Calculate, for a real number a and an integer p, read from the console, a to the power p using repeated multiplication. Execute the program step by step using also the Watch window appropriately.
Problem 3. We suppose that we have to process N terms (N taken from the console). Compute the sum of terms and arithmetic mean of positive terms introduced from the console.
Problem 4. Write a C program that prints the ASCII table with codes and corresponding characters.
Problem 5. Calculate, for any value k, read from the console, the sum of the first k odd numbers using for statement.
Problem 6. Calculate and print the greatest common divisor of all distinct pairs (a,b), where a and b are integers less than n, read from the console.
Problem 7. Write a program that determines whether a positive integer is a prime number or not. Problem 8. Write a program to simulate a chronometer using the following graphical functions: circle(), lineto(), moveto(), delay().
- circle function is used to draw a circle with center (x,y) and third parameter specifies the radius of the circle. void circle(int x, int y, int radius)
- lineto function draws a line from current position(CP) to the point(x,y), you can get current position using getx and gety function. - moveto function changes the current position (CP) to (x, y) void moveto(int x, int y);
- delay function is used to suspend execution of a program for a particular time. void delay(unsigned int); Here unsigned int is the number of milliseconds ( remember 1 second = 1000 milliseconds ).
A, da! Tu stii doar sa editezi in minecraft.. si crezi ca stii programare..