Answers for "how to convert c++ code to c code"

70

convert c++ code to c online

#include<stdio.h>
Posted by: Guest on October-12-2020
8

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 ( ); } //
Posted by: Guest on January-11-2022

Code answers related to "how to convert c++ code to c code"

Code answers related to "BASIC"

Browse Popular Code Answers by Language