正在加载图片...
二写出下面程序的运行结果 #include <iostream . h> #include <math. h> 其运行结果为 void maino input two numbers int a, b.c. cout<<" input two numbers: \ n the result is: 12 cin >>a >>b: the new number is: 24 c=a*b+2*a; cout <<the result is: <<C <<endl C=a"Cr cout < the new number is: 2<<c <<endl C++程序设计课件设计制作:徐龙琴 3C++程序设计课件 设计制作:徐龙琴 3 二 写出下面程序的运行结果 #include <iostream.h> #include <math.h> void main() { int a,b,c; cout <<"input two numbers:\n”; cin >>a >>b; c = a*b+2*a; cout <<"the result is:” <<c <<endl; c=a*c; cout <<"the new number is:” <<c <<endl; } 其运行结果为: input two numbers: 2 4 the result is:12 the new number is:24
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有