Advertisement
labbin

Untitled

Sep 18th, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. void main()
  3. {
  4.    int a;
  5.    char b=y;
  6.    while(b==y)
  7.    {
  8.    printf("Input angle of your shape :");
  9.    scanf("%d", &a);
  10.    while(a<3)
  11.    {
  12.       printf("\nReinput your angle");
  13.       scanf("%d",&a);
  14.    }
  15.    printf("\nSum of inner angle :%d", (a-2)*180);
  16.    printf("Do you want to continue(y/n) :");
  17.    scanf("%c", &b);
  18.    }
  19.    printf("Good bye...");
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement