#include <stdio.h>

   int main() {
   float num;

   printf("Insira um número:\n");
   scanf("%f", &num); 
   printf("A soma é %.2f\n", num + num);

   return(0);
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: