This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include"stdio.h" | |
main() | |
{ | |
int a,b,c; | |
scanf("%d,%d",&a , &b); | |
while (a % b != 0){ | |
c = a % b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include"stdio.h" | |
main() | |
{ | |
int a,b,i,t; | |
scanf("%d%d",&a,&b); | |
if (a<b) | |
t=a; | |
a=b; | |
b=t; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include"stdio.h" | |
main() | |
{ | |
int i,j; | |
int sum=0; | |
printf("1000以内的完全数\n"); | |
for (i=1;i<=1000;i++) | |
{ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include"stdio.h" | |
main() | |
{ | |
int a,b,c; | |
scanf ("%d,%d",&a,&b); | |
while (b!=0){ | |
c = a%b; | |
a = b; | |
b = c; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
main() | |
{ | |
float a,r1,r2,m; | |
char b,c; | |
printf("请输入加油量,汽油类型(a,b,c)以及服务类型(f,m,e)\n"); | |
printf("***************************************************\n"); | |
printf("请输入:"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<windows.h> | |
#include<malloc.h> | |
int main(void) | |
{ | |
int c; | |
int i; | |
int j; | |
nihao: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
char op; | |
double data1,data2,r; | |
printf("请输入式子\n"); | |
scanf("%lf%c%lf",&data1,&op,&data2); | |
switch(op) | |
{ | |
case '+':r=data1+data2;break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
char op; | |
double data1,data2,r; | |
printf("请输入式子\n"); | |
scanf("%lf%c%lf",&data1,&op,&data2); | |
switch(op) | |
{ | |
case '+':r=data1+data2;break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
float a,b; | |
char c1; | |
printf("请输入表达式\n"); | |
scanf("%f%c%f",&a,&c1,&b); | |
printf("运算结果为:"); | |
switch(c1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
char op; | |
double data1,data2,r; | |
printf("请输入式子\n"); | |
scanf("%lf%c%lf",&data1,&op,&data2); | |
switch(op) | |
{ | |
case '+':r=data1+data2;break; |