摘要:
定义圆形半径,求面积。int r =5;package job01;import java.util.Scanner;public class work01 { public static void main(String[] args) { // TODO Auto-generated metho 阅读全文
摘要:
1. #include<stdio.h> main() { float n; scanf("%f",&n); if(n>0) printf("正数!\n"); else if(n==0) printf("0 既不是正数,也不是负数!\n"); else printf("负数\n"); } 2. #i 阅读全文
摘要:
一、 编写程序,定义两个整型变量,赋值并输出 #include<stdio.h> main() { int a=8; int b=6; printf("%d%d\n",a,b); } 二、 编写程序,定义一个单精度和一个双精度的变量,赋值并输出 #include<stdio.h> main() { 阅读全文
摘要:
1.定义两个整形变量,赋值并输出 #include<stdio.h> main() { int a=2; int b=6; printf("%d%d\n",a,b); } 2.定义一个单精度和一个双精度胡变量,赋值并输出 #include<stdio.h> main() { float m=1.23 阅读全文
摘要:
恢复内容开始 1.编写程序,输出我爱学习C语言! #include<stdio.h>main(){ printf("我爱学习C语言!");} 2.分行输出自己的专业和姓名 #include<stdio.h>main(){ printf("计算机\n安佳乐\n");} 3.用*表示字母C的图案 #in 阅读全文