Uri 1172 solution || Beecrowd 1172 – Array Replacement I solution in C , Python || Free Code Center

Uri 1172 solution

Uri 1172 Solution || Beecrowd 1172 – Array Replacement I solution Question link: Beecrowd 1172 – Array Replacement I solution in C #include <stdio.h> int main() { int X[10],i; for(i=0;i<10;i++){ scanf(“%d”,&X[i]); } for(i=0;i<10;i++){ if(X[i]==0||X[i]<0) {X[i]=1;} } for(i=0;i<10;i++){ printf(“X[%d] = %d\n”,i,X[i]); } return 0; } Beecrowd 1172 – Array Replacement I solution in Python def main(): … Read more

Uri 1159 Solution || Beecrowd 1159 Solution

Uri 1159 Solution

Question Uri 1159 Solution || Beecrowd 1159 Solution ||Sum of Consecutive Even Numbers solution in C The program must read an integer X indefinite times (stop when X=0). For each X, print the sum of five consecutive even numbers from X, including it if X is even. If the input number is 4, for example, the output must be 40, that is … Read more

Uri 1048 solution in c || Beecrowd 1048 Salary Increase solution in C,CPP

Uri 1048 solution in c

Uri 1048 Solution in c || Beecrowd 1048 Salary Increase Question #include<stdio.h> int main() { float s; scanf(“%f”,&s); if(s>0 && s<=400.0) printf(“Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: 15 %%\n”,(s+(s*.15)),(s*.15)); else if(s<=800.0) printf(“Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: 12 %%\n”,(s+(s*.12)),(s*.12)); else if(s<=1200.0) printf(“Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: 10 %%\n”,(s+(s*.10)),(s*.10)); else if(s<=2000.0) printf(“Novo salario: %.2f\nReajuste ganho: … Read more

Beecrowd 1041 Coordinates of a Point Solution in C , C++, Python || Beecrowd 1041 Solution

Beecrowd 1041 Solution

Beecrowd 1041 Solution – Coordinates of a Point Question Solution in C #include<stdio.h> int main() { double x,y; scanf(“%lf%lf”,&x,&y); if(x==0 && y==0){ printf(“Origem\n”); } else if(x==0){ printf(“Eixo Y\n”); } else if(y==0){ printf(“Eixo X\n”); } else if(x>0&&y>0){ printf(“Q1\n”); } else if(x<0&&y>0){ printf(“Q2\n”); } else if(x<0&&y<0){ printf(“Q3\n”); } else if(x>0&&y<0){ printf(“Q4\n”); } return 0; } Beecrowd 1041 … Read more

Beecrowd 1015-Distance Between Two Points solution in C,Python

Beecrowd 1015-Distance Between Two Points solution Solution in C #include<stdio.h> int main(){ double x1,x2,y1,y2,d; scanf(“%lf%lf%lf%lf”,&x1,&y1,&x2,&y2); d=sqrt(pow(x2-x1,2)+pow(y2-y1,2)); printf(“%.4lf\n”,d); return 0; } Solution in C++ Solution in Python import math x1, y1, x2, y2 = map(float, input().split()) d = math.sqrt((x2 – x1) ** 2 + (y2 – y1) ** 2) print(f”{d:.4f}”) Next problem: Beecrowd 1016 -Distance solution

Beecrowd 1014 solution ||BEECROWD 1014 – Consumption Solution in C ,Python || URI 1014 || Free Code Center

Beecrowd 1014 solution

Beecrowd 1014 solution || BEECROWD 1014 – Consumption Solution Question BEECROWD 1014 – Consumption Solution in C Solution in C #include<stdio.h> int main() { int X; float Y; scanf(“%d%f”,&X,&Y); double a=X/Y; printf(“%.3lf km/l\n”,a);//Beecrowd 1014 solution return 0; } Explanation: The code provided is a C program that calculates the fuel efficiency of the vehicle and … Read more

Beecrowd 1013 solution- The Greatest

Beecrowd 1013

Beecrowd 1013- The Greatest solution Question Make a program that reads 3 integer values and present the greatest one followed by the message “eh o maior”. Use the following formula: Input The input file contains 3 integer values. Output Print the greatest of these three values followed by a space and the message “eh o … Read more

Beecrowd 1012-Area solution C, CPP and Python || Beecrowd 1012 || Free Code Center

Beecrowd 1012-Area solution

Beecrowd 1012-Area solution C, CPP and Python Question link beecrowd | 1012 Area Make a program that reads three floating point values: A, B and C. Then, calculate and show:a) the area of the rectangled triangle that has base A and height C.b) the area of the radius’s circle C. (pi = 3.14159)c) the area … Read more

Uri 1009 Solution in Python,C,C++

Uri 1009 solution in C

Beecrowd1009 – Salary with Bonus solution problem question Uri 1009 solution in C- Salary with Bonus solution #include<stdio.h> int main() { double a,b,c; char name; scanf(“%s %lf %lf”,&name,&a,&b); c=b*.15+a; printf(“TOTAL = R$ %.2lf\n”,c); return 0; } Uri 1009 solution in C++ Uri 1009 solution in Python || Beecrowd1009 – Salary with Bonus solution with Python … Read more