Horje
c code to c++ converter Code Example
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 ( ); } //




Cpp

Related
Find duplicates in an array geeks for geeks solution in cpp Code Example Find duplicates in an array geeks for geeks solution in cpp Code Example
how to make a running text in c++ Code Example how to make a running text in c++ Code Example
how to run the code Code Example how to run the code Code Example
c++ loop Code Example c++ loop Code Example
check if a string is a prefix of another c++ Code Example check if a string is a prefix of another c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8