Search
 
SCRIPT & CODE EXAMPLE
 

C

Sampoo C programming

#include<stdio.h>
 
int main(){
int v,a,b,c;
scanf("%d %d %d %d",&v,&a,&b,&c);
int temp = 0;
while(v >= 0){
    if(temp % 3 == 0){
        if(v<a){
            printf("F");
            return 0;
        }
        v -= a;
    }
    else if(temp % 3 == 1){
        if(v<b){
            printf("M");
            return 0;
        }
        v -= b;
    }
      else{
        if(v<c){
            printf("T");
            return 0;
        }
        v -= c;
    }
    temp++;
}
return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: params in main function in C 
C :: memset c 
C :: transpose of a matrix in c 
C :: else if statement in c 
C :: Typecast Operator in C language 
C :: c if statement 
C :: time now C 
C :: mark rober 
C :: robtex 
C :: mongodb delete all documents 
Dart :: list item bottom border in flutter 
Dart :: How to change OutlinedButton border color? 
Dart :: materialstateproperty color 
Dart :: flutter border around textbutton 
Dart :: dart round to 2 decimals 
Dart :: open link with button flutter 
Dart :: flutter array of strings 
Dart :: dart shuffle list 
Dart :: flutter navigation pop 
Dart :: cross icon flutter 
Dart :: to disable the shrinker pass the --no-shrink flag to this command. in flutter 
Dart :: Send HTTP POST request in Flutter or Dart 
Dart :: dartpad missing browser features 
Dart :: dart regex for url 
Dart :: dart regex 
Dart :: flutter alertdialog padding 
Dart :: dart variable in string 
Dart :: random in flutter int 
Dart :: android studio causing blue screen 
Dart :: flutter clipoval 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =