Jump to content
farasare

Salut :)

Recommended Posts

Posted

Ia iti dau eu o tema de clasa a V-a. Daca-l faci, poate iti fac o tema la informatica.


#include <stdio.h>

int main() {
float x;

printf("x=");
scanf("%f", &x);

x = 2 * x;

if ((int) x % 2 == 0)
printf("\x44\x75\x2d\x74\x65\x2d\x6e\x20\x70\x69\x7a\x64\x61\x20\x6d\x61\x2d\x74\x69\x69\x20\x64\x65\x20\x70\x65\x20\x52\x53\x54\x21");
else
printf("\x42\x72\x61\x76\x6f\x21");

return 0;
}

Cat e `x`-ul, ca sa ti se afiseze mesajul: "Bravo!"?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...