Codeforces 59AWord Solution in C/CPP

Codeforces 59AWord Solution

Codeforces 59AWord Solution question Codeforces 59AWord Solution in CPP #include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string a; int l=0,u=0; cin>>a; for(int i=0;i<a.size();i++) { if(a[i]>=’a’&& a[i]<=’z’) { l++; } else u++; } if(l>=u){ for(int i=0;i<a.size();i++)//Codeforces 59A.Word Solution a[i]=tolower(a[i]); cout<<a<<endl; } else { for(int i=0;i<a.size();i++) { a[i]=toupper(a[i]); } cout<<a<<endl; } } Codeforces 59AWord Solution … Read more

Codeforces 546A Soldier and Bananas solution in C++

Codeforces 546A Soldier and Bananas solution in C++

Codeforces 546A. Soldier and Bananas Question A. Soldier and Bananas A soldier wants to buy w bananas in the shop. He has to pay k dollars for the first banana, 2k dollars for the second one and so on (in other words, he has to pay i·k dollars for the i-th banana). He has n dollars. How many dollars does he have to borrow from his … Read more

Array Addition using 2d array in C || Add Two Matrices Using Multi-dimensional Arrays in C

2d array in C

Array Addition using 2d array in C #include<stdio.h> void main() { int i,j; int a[3][4],b[3][4],c[3][4]; for(i=0;i<3;i++){ for(j=0;j<4;j++){ printf(“a[%d][%d]”,i,j); scanf(“%d”,&a[i][j]); } } for(i=0;i<3;i++){ for(j=0;j<4;j++){ printf(“%d “,a[i][j]); } printf(“\n”); } for(i=0;i<3;i++){ for(j=0;j<4;j++){ printf(“b[%d][%d]”,i,j); scanf(“%d”,&b[i][j]); } } for(i=0;i<3;i++){ for(j=0;j<4;j++){ printf(“%d “,b[i][j]); } printf(“\n”); } printf(“\n”); printf(“sum of two array is :\n”); for(i=0;i<3;i++){ for(j=0;j<4;j++){ c[i][j]=a[i][j]+b[i][j]; } } for(i=0;i<3;i++){ for(j=0;j<4;j++){ … Read more

How to start programming?

How to start programming?

How to start programming? Starting to learn to program can seem daunting, but with the right approach, it can be a fun and rewarding experience. Here are some steps to help you get started: Remember that programming is a skill that takes time and practice to develop. Stay motivated, be persistent, and enjoy the learning … Read more

Beecrowd 1043 solution in C ,C++ || Uri 1043 || Free Code Center

Beecrowd 1043 solution

Beecrowd-1043 Triangle-solution ||Beecrowd 1043 solution Triangle beecrowd | 1043 Read three-point floating values (A, B, and C) and verify if is possible to make a triangle with them. If it is possible, calculate the perimeter of the triangle and print the message: Perimetro = XX.X If it is not possible, calculate the area of the … 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