- To keep it, select "Keep existing code".
- To replace it with an example, select "Replace with example".
#include <stdio.h> #include <stdlib.h> int main() { int num; printf (“Digite um numero: “); scanf (“%d”,&num) if (num>0) { printf (“\n\nO numero e positivo\n”; } else { printf (“O numero e negativo”); } return 0; }
Output
(Run the program to view its output)
Keep existing code?
You are trying to switch languages while there's code in the editor.