怎么把这句换成c语言(*• . •*)?

前面省略٩(๑•ㅂ•)۶

cout << “the sum of ” << v1 << " and "
<< v2 << " is " << v1 + v2 << endl;

初来乍到,请多关照(//̀Д/́/)

可以使用c语言的printf函数来代替c++里的cout,下面是一个测试的例子:

#include <stdio.h>

int main(void){
    
    int v1=2,v2=3;
    printf("the sum of %d and %d is %d\n",v1,v2,v1+v2);
    
    return 0;
    
} 

img

应该是这样吧
printf("the sum of %d and %d is %d\n",v1,v2,v1+v2);

两位大佬说的都很对,我补充一点
就是你还要看v1 的类型
int -->%d
flaot --> %f
double --> %lf
char --> %c
有用记得采纳呐