View difference between Paste ID: Nw9xkr8i and YZVDd23v
SHOW: | | - or go back to the newest paste.
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
}