Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

ABR0001 - Арифметик үйлдлүүд(жишээ)

а, b хоёр бодит тоо өгөгдөв. Эдгээр тоонуудын нийлбэр, ялгавар, үржвэрийг ол.

Input

а ба b хоёр бодит тоог хооронд нь нэг хоосон зайгаар тусгаарлан өгнө

Output

Эхний мөрөнд уг хоёр тооны нийлбэр, дараагийн мөрөнд ялгавар (a-b), гурав дахь мөрөнд үржвэрийг таслалаас хойш нэг орны нарийвчлалтай байхаар хэвлэнэ.

Example

Input:
10.5 3.6

Output:
14.1
6.9
37.8

Паскал хэл дээрх бодолт:
 
      var
        a,b:real;
      begin
        read(a,b);
        writeln(a+b:0:1);
        writeln(a-b:0:1);
        writeln(a*b:0:1);
      end. 

С хэл дээрх бодолт:
   
      #include "stdio.h"
      int main()
      {
        float a,b;
        scanf("%f%f",&a,&b);
        printf("%.1f\n%.1f\n%.1f", a+b, a-b, a*b);
        return 0;
      } 

C++ хэл дээрх бодолт:

      #include "iostream"
      using namespace std;
      int main()
      {
        double a,b;
        cin >> a >> b;
        cout.setf(ios::fixed|ios::showpoint);
        cout.precision(1);
        cout << a+b << endl << a-b << endl << a*b;
        return 0;
      } 

Нэмсэн:sw40
Огноо:2007-10-14
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:Бүгд дараах хэлүүдээс бусад: ASM32-GCC MAWK BC C-CLANG NCSHARP CPP14 CPP14-CLANG COBOL COFFEE D-CLANG D-DMD DART ELIXIR ERL FANTOM FORTH GOSU GRV JS-RHINO JS-MONKEY JULIA KTLN NIM NODEJS OBJC OBJC-CLANG OCT PERL6 PICO PROLOG PYPY PYPY3 PY_NBC R RACKET RUST CHICKEN SQLITE SWIFT UNLAMBDA VB.NET
Эх сурвалж:Абрамов С. А.

hide comments
2012-04-16 06:58:35 nursultan
muuu pandaaa
2012-04-13 15:24:37 monhbold
#include<stdio.h>
main()
{
float a,b;
scanf("%f%f",&a,&b);
printf("%.2f/n%.2f/n%2d,a+b,a-b,a*b);
}
2012-04-13 15:01:16 monhbold
#include<stdio.h>
main()
{
int x;
float y;
printf("x+y,x-y,x*b");
}
2012-04-12 11:31:11 satjan
In java
import java.io.*;
import java.util.Scanner;
public class A{
public static void main(String args[])
{
Scanner input1 = new Scanner(System.in);
Scanner input2 = new Scanner(System.in);
int too;
int to ;
System.out.println("1 Togoo oruul:");
too=input1.nextInt();
System.out.println("2 Togoo oruul:");
to=input2.nextInt();
int sum=too+to;
int div=too-to;
int sub=too*to;
System.out.println("Niilber"+sum+"\n Yalgavar"+div+"\nUrjber"+sub);
}
}
2012-04-11 07:22:01 Munhk-Erdene
#include <stdio.h>
main()
{
float a,b;
scanf("%f%f",&a,&b);
printf("%.1f\n%.1f\n%.2f", a+b, a-b, a*b);
return 0;
}
2012-02-29 10:31:05 AiR-Stark (DMTS) 10c
Хойлог Ариунбаяр
2011-09-08 08:07:17 tsetsee_yugi
Лисп хэл дээр хоёрхон мөр код болдог юм даа.
(setq a (read) b (read))
(format t "~,1f~%~,1f~%~,1f" (+ a b) (- a b) (* a b))
2011-09-08 00:24:21 oyuntungalag
#include "stdio.h"
main(){
double a,b
SCANF("%F,%F", &A,&B);
PRINTF("%.IF")
2011-09-08 00:20:15 D.SE11D001
#include "stdio.h"
#include "stdlib.h"
main ()
{
int a,b;
scanf("%d%d", &a, &b);
printf("%d", a+b);
system("pause");
return 0;
}
2011-09-07 00:28:38 Beku
#include "stdio.h"
int main()
{
float a,b;
scanf("%f%f",&a,&b);
printf("%.1f\n%.1f\n%.1f", a+b, a-b, a*b);
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.