#1#include <stdio.h>int main(){int UpInt = 1;for(int i = 0; i < 32; i++){UpInt = 2;printf("%d\n", UpInt);}float UpFloat = 1e64 * 1e2;float DownFloat = 1e-64 1e-2;printf("%d\n", UpInt);printf("%f\n", UpFloat);printf("%f\n", DownFloat);return 0;}#2#include <stdio.h>int main(){printf("\a");printf("Startled by the sudden sound, Sally shouted,\n");printf("By the Great Pumpkin, what was that!\n");return 0;
}#3#include <stdio.h>int main(){float n;printf("Enter a floating-point value: ");scanf("%f",&n);printf("fixed-point notation:%.6f\n", n);printf("exponential notation:%.6e\n", n);printf("p notation:%a\n", n);return 0;}#4#include<stdio.h>int main(){long totalSecond;int age;printf("please input your age\n");scanf("%d",&age);totalSecond=age3.156e7;printf("you have lived %d second\n",totalSecond);return 0;}#5#include<stdio.h>#define MASS_H2O 3.0e-23#define MASS_QT 950int main(){float quarts,countH2O;printf("please input the number of quart of water\n");scanf("%f",&quarts);countH2O=quartsMASS_QT/MASS_H2O;printf("%f quarts of water contain %e count of H2O",quarts,countH2O);
return 0;
}#6#include<stdio.h>#define MASS_yc 2.54int main(){int yc;float longth;printf("please input the number of yc\n");scanf("%d",&yc);longth=yc*MASS_yc;printf("your longth is %f cm",longth);return 0;}#7#include <stdio.h>int main(){float pt = 0.5;float gs = 8.0;float ts = gs * 2;float cs = ts * 3;printf("Input n:");float n;scanf("%f", &n);printf("pt:%f\n", pt * n);printf("gs:%f\n", gs * n);printf("ts:%f\n", ts * n);printf("cs:%f\n", cs * n);}#8#include <stdio.h>int main(){char input;printf("Input66: ");scanf("%d", &input);printf("%c\n", input);}