draw flowchart to reverse digits of an integer
#include <stdio.h> void main() { int arr[10], temp[10]; for(int i=0; i<10; i++) { scanf("%d", &arr[i]); } for(int i=0;i<10;i++) { for(int j=10; j<0; j--) { temp[i]=arr[j]; } } }
Read up on the shapes needed: http://en.wikipedia.org/wiki/Flowchart Then draw it or use a flowchart program: http://diagramo.com/
1.start 2.Input n 3.m=n 4.While m<>0 loop { 5.rem=m MOD 10 6.rev=rev+rem*10 7.m=m/10 } 8.Display 9.End Draw the boxes according to the requirements. Parallelograms, square, oval and a diamond etc etc. All the best.
Join our real-time social learning platform and learn together with your friends!