How much Scholarship
The ZCO Scholarship Contest has just finished, and you finish with a rank of . You know that Rank to Rank will get scholarship on the ZCO exam fee and Rank to Rank will get percentage scholarship on the ZCO exam fee. The rest do not get any scholarship.
What percentage of scholarship will you get ?
Input
- Input consist of single line of input containing one integer .
Output
- Output a single line containing one integer — the percentage of scholarship you will get.
Constraints
Example Input 1
49
Example Output 1
100
Explanation 1
Since , answer is percentage scholarship.
Example Input 2
317
Example Output 2
0
Explanation 2
Since , you do not get any scholarship.
SOLUTION USING C LANGUAGE:-#include <stdio.h> int main(void) { int R; scanf("%d",&R); if(R>=1 && R<=50) printf("100"); else if (R>=51 && R<=100) printf("50"); else printf("0"); // your code goes here return 0; }
No comments:
Post a Comment