Технический форум

Технический форум (http://www.tehnari.ru/)
-   Помощь студентам (http://www.tehnari.ru/f41/)
-   -   Составить блок-схему (http://www.tehnari.ru/f41/t80544/)

гаяне 15.11.2012 22:13

Составить блок-схему
 
Что-то я запуталась в составлении блок-схемы именно к этой программе. Кто может помогите пожалуйста :
Код:

// 1234.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <stdio.h> //header file for input-output
#include <math.h> //header file for math calculations
#include <conio.h> //header file for console


void main()
{
/*for(int i=9;i>=1;i=i-2)
{
printf("%d\n",i);
}*/

/*int i=1;
while(i<10){
printf("%d\n",i);
i=i+3;
}*/

/*int i=1;
do {
printf("%d\n",i);
i=i-1;
} while(i>=8);*/
int n;
scanf("%d",&n);
int a=0;
int b=1;
int c;
printf("%d\n",a);
printf("%d\n",b);
for (int i=3; i<=n;i=i+1){
c=a+b;
a=b;
b=c;
printf("%d\n",c);

}



getch();
}

Заранее спасибо


Часовой пояс GMT +4, время: 03:42.

Powered by vBulletin® Version 4.5.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.