Advertisement
LeTuanAnh

Cung

Oct 14th, 2015
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3.  
  4. int main(){
  5.     int n;
  6.     printf("\nNhap so nguyen: ");
  7.     scanf_s("%d", &n);
  8.  
  9.     int cung = ((n * 10) % 360) / 90 + 1;
  10.     printf("\nCung thu : %d", cung);
  11.  
  12.     _getch();
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement