گروه نرم افزار دانشگاه آزاد شهرکرد

ورودی 94

بایگانی
۱۰آبان

#include<iostream.h>

#include<conio.h>

int main()

{

int a,b,p,c,r;

a=0;

b=1;

cout<<"adad ra vared kon :";

cin>>r;

for(c=1;c<=r;c++)

{

p=a;

a=b;

b=b+p;

cout<<b<<"\t";

}

getch();

return 0;

}

۱۰آبان

#include <iostream.h>

#include <conio.h>

int main()

 {

 int i,a,s;

 cout<<"Adad ra vared kon :";

 cin>>a;

 for(i=1;i<a;i++)

  if(a%i==0){

  s=s+i;

  }

  if(s==a){

  cout<<"adad kamel ast";

  }

 else

 {

 cout<<"adad kamel nist";

 }

 getch();

}

۱۰آبان
#include <iostream.h>
#include <conio.h>
int main()
{
float s = 0;
float t = 1.0;
for(int i = 0; i <= 7; i++)
{
   s = s + t;

   t = 0.5 * t;
}
cout<<s;
getch();
}
۱۴مهر

cpp

دانلود کامپایلر borland cpp .

برای دانلود کلید ادامه مطلب را فشار دهید.