输出200以内所有完全平方数C
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/06 05:12:42
if(m=0)错了应该为if(m==0)再问:好了,谢谢再答:把if(i=s)改成if(i==s)再试一下
有,只是从屏幕里被挤出去了,默认cmd窗口只能缓冲300行,你可以一行多输出几个#include<stdio.h>int main(){ unsigned n
额还没解决?你是刚学C?好吧基本没啥问题了,不过给你指几个问题:1.main函数没返回类型;2.i=i*i这句有问题,这里i都变了,后面再i++的话情何以堪;3.c=i%100,c你是想取百位数吗?那
#includemain(){inta,b,c;for(a=1;a
x+100=n^2x+268=m^2m^2-n^2=x+268-(x+100)(m-n)(m+n)=168=1X168=2X84=3X56=4X42=6X28=7X24=8X21=12X14m-n=2
#include#includevoidmain(){inti,j,cnt=0;for(i=1;i
1124394165256367498649811010011121121441316914196152251625617289183241936120400214412248423529245762
1,4,9,16,25,36,49,64,81,100,121,144,169,196,225,256,289,324,361,400,441,484,529,576,625,676,729,784,
#include"stdio.h"main(){inti;for(i=7;i
100121144225400441484676900publicclassExercise{publicstaticvoidmain(String[]args){for(inti=100;iif(f
1000以内的平方数14162536496481100121144169196225256289324361400441484529576625676729784841900961
#include"stdio.h"voidhuiwen(intn){\x09inti=1,bo=1;\x09intnum1=n,num2=n;\x09while(num1>=10){\x09num1%
0,1,4,9,16,25,
10^2-10011^2-100……99^2-100VB代码:Fori=10To100Text1.Text=Text1.Text&(i*i-100)&vbTabIfiMod10=0ThenText1.
暴力一下就行了#includeintmain(){\x09inti,j,k;\x09i=j=k=0;\x09for(i=1;i\x09{\x09\x09for(j=i;j\x09\x09{\x09\x
#include"stdio.h"voidmain(void){inti=0,count=0;do{if((i%3==0)&&(i%5==0))//同时被3和5整除{printf("%d",i);co
完全数=【真】约数之和.就是“约数”里除去自身.你的程序要修改一句.for(k=1;k<n;k++) // k <= n 修改成 
请指明编写语言:PASCAL/C/C++/BASIC
PrivateSubCommand1_Click()Dimi%,k%Fori=1To1000IfInt(Sqr(i))=Sqr(i)ThenPrinti,:k=k+1IfkMod5=4ThenPrin