Answers for "convert c program into c++"

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

Code answers related to "BASIC"

Browse Popular Code Answers by Language