C语言小学期编程程序,急需,在线等?(c语言简单小程序代码)

6547℃ 胡喜峰

编写一个C语言小程序 急求

int main() { int a; char c; do { printf("do you know 1+1=?\n"); scanf("%d",&a); if(a==2) printf("good you correct"); else printf("oh my god you error!!! "); printf("try again? y/n"); scanf("%c",&c); if(c=='n') break; }while(1) printf("bye bye !! \n"); return 0; }

(c语言简单小程序代码)C语言小学期编程程序,急需,在线等?

请用C语言编一个求圆柱体积并输出到屏幕的的程序,急需!!! 在线等!!!

void main() { float v,r,h; float pi = 3.1415; printf("请输入圆柱高和底半径:\n "); scanf("%f%f",&h,&r); v = pi*r*r*h; printf("圆柱体积是:%f\n ",v); }

C语言 简单 在线等 谢谢

直接用printf输出来就好了嘛..main() {printf("\nxxx1xxx\n"); printf("xx222xx\n"); printf("x33333x\n"); printf("xx222xx\n"); printf("xxx1xxx\n"); }

c语言高手进啊!急!!!!在线等

你再试试: #include <stdio.h>#include <string.h>#include <stdlib.h>#include <ctype.h>#include<conio.h>void welcome(){printf("***************************************************.

求C语言小程序源代码,300行左右

贪吃蛇游戏#define N 200#include <graphics.h>#include <stdlib.h>#include <dos.h>#define LEFT 0x4b00#define RIGHT 0x4d00#define DOWN 0x5000#define UP 0x4800#.

想用c语言设计一个简单小程序,求代码.

#include<stdio.h> int main() { float hour; printf("How many hours did you excise?\nPlease input it ^_^ :"); scanf("%f",&hour); //输入函数中“”内不能加\n; bool a,b; a=.

C语言编程(在线等)

在E盘建立个str文件夹,里面有三个文件,一个复制下面的程序,一个建立input.txt里面输入 this is my name is she is do you konw? 再建立一个空output.txt文件,运行程序.

求助啊,谁有有趣的c语言小程序,并且要有源代码!!

#include <stdlib.h>#include <stdio.h> #include <math.h>#include <time.h>#define numOfQuestions 10 void main() { srand(1); for(int i=0;i<numOfQuestions ;i++) { bool add = .

求一个小程序( 用c语言编写的)

#include"stdio.h"main(){ int x,n;loop: printf("do you know 1+1=?\n"); scanf("%d",&x); if(x==2) printf(" good you correct"); else printf("oh my god you error!!!\n "); printf("try again? y/n\n"); getchar(); n=getchar(); if(n=='y'||n=='Y') goto loop; if(n=='n'||n=='N') printf("bye bye !! "); system("pause");}

求一个C语言的程序代码.完整的

int main() { int num, i, j; printf("请输入一个数:"); num = scanf("%d", &num); puts("这样的5个数为:"); for(i = num + 1, j = 0; j < 5; i++) { if(isPrime(i)) { printf("%d,", i); j++; } } return 0; } int isPrime(int n) { int i; for(i = 2; i <= (int)sqrt(n); i++) { if(n%i) continue; else return 0; } return 1; } 没有写#include,你自己加上吧