How to turn c++ code into c code

Code examples

7
0

convert c++ code to c online

#include<stdio.h>
0
0

c code to c++ converter

#include <stdio.h>
main ( )
{
char op ;
int n1, n2 ;
printf ("opération souhaitée (+ ou *) ?\n ") ;
scanf ("%c", &op) ;
printf ("donnez 2 nombres entiers : \n") ;
scanf ("%d %d", &n1, &n2) ;
if (op == '+')
printf ("leur somme est : %d \n", n1+n2) ;
else
printf ("leur produit est : %d \n",n1*n2) ;
getch ( ); } //

In other languages

This page is in other languages

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................