大学c语言,急求答案!!!

Python012

大学c语言,急求答案!!!,第1张

这个程序里的变量名不正确。C语言的变量名可以由数字、字母和下划线组成,但是一般只能以下划线和字母开头,所以程序中的2cd和π是不符合要求的。另外变量名也不能使用C语言中的关键字,所以使用for也是不符合要求的。

1.C

2.A

3.A

4.C

5.D

6.B

7.A,b

8.a=0,b=7

9.4 2 7

都对的,请采纳

(1)

#include "stdafx.h"

#include <iostream>//.h

using namespace std//

main(){

double F,c

double F,c

cin >>F

c=5.0/9*(F-32.0)

cout <<"F=" <<F <<"c=" <<c <<endl

return 0

}

(2)

#include "stdafx.h"

#include <iostream>

using namespace std

void main(void){

int a,b,he,ji

cout <<"Type 2 integers...\n"

cin >>a >>b

he=a+b

ji=a*b

cout <<"a+b=" <<he <<endl <<"axb=" <<ji <<endl

}