Advertisement
ahamed210

Untitled

May 10th, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4.     int a, b, c, temp;
  5.     scanf("%d %d %d", &a, &b, &c);
  6.     temp= a-b*c;
  7.     if(temp > a-b-c){
  8.         temp = a-b-c;
  9.     }
  10.     printf("%d\n", temp);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement