Skip to main content

URI ONLINE JUDGE - 1041

Solution of 1041 number !

please do not copy it rather watch it for learning purpose :)



#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main ()
{
    double a,b;
    cin >> a >> b;
    if(a==0.0&&b==0.0)cout << "Origem" << endl;
    if(a>0&&b>0) cout << "Q1" << endl;
    if(a<0&&b>0) cout << "Q2" << endl;
    if(a<0&&b<0) cout << "Q3" << endl;
    if(a>0&&b<0) cout << "Q4" << endl;
    if(a>0&&b==0)cout << ("Eixo X") << endl;
    if(a<0&&b==0)cout << ("Eixo X") << endl;
    if(b>0&&a==0)cout << ("Eixo Y") << endl;
    if(b<0&&a==0)cout << ("Eixo Y") << endl;

    return 0;
}


If you do not understand please leave a message here.

or mail us mechaboo786@gmail.com

or you can leave a message at fb . Link :- https://www.facebook.com/mechaboo/

Comments

Popular posts from this blog

10424 - Love Calculator UVA Solution

10424 - Love Calculator UVA Solution please do not copy it rather watch it for learning purpose :) Here is the code :-  #include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; int getval(string nam); int reducingVal(int val);    int main(){        //MechaBoo     string name1,name2;     while(getline(cin,name1))     {         getline(cin,name2);         int par1= getval(name1);         int par2=getval(name2);         par1=reducingVal(par1);         par2=reducingVal(par2);               double x= par1*1.00;         double y=par2*1.00;           ...

Key to code_Turning flowchart into JAVA code.(in nutshell)

So, you already got the idea of flowchart and  we also posted video in our YouTube channel about the flowchart more are coming in case you did not get it properly. But now I am here today starting off with Java code.I am not going to start all at once so now I am just going to give you some basic about it. To remind you again for to learn code its really very important that you learn flowchart first. As from last blog post and also from the YouTube video you should know by now the basic signs of flow chart keep those in my mind you are going need it later here. First of all what is Java, now the  answer is it's a computer language. -(some)hey,we know that.L O L what a looser boring topic. Me:you sure you want to hear the hard way. -(all)Huh! try me! me:ok,  " Java  is a general-purpose computer  programming language  that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible...

Skeleton Of C++

Today we will see the body structure of c++ below is given the structure:- #include <iostream> #include <bits/stdc++.h> using namespace std; int main () {     //your codes goes here     return 0; }   You will start writing your code from main function.