Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Assignment 4
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//gcc 5.4.0 //HAVE TO MANUALLY DO IT EACH TIME IN REALITY THIS WOULD NOT HAPPEN #include <stdio.h> int main(void) { long long a; long long b; long long c; long long d; int year; scanf("%lld %lld", &a , &b); c=a; d=b; a*=b; printf("multiplication is %lld\n", a); cd= scanf("%d", &year); if(((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) { printf("It is a leapyear"); } else { printf("It is not a leapyear"); } return 0; } //Multiplication of the large number by the small number. //Addition of the large number by the small number. //Subtraction of the large number by the small number. //Division of the large number by the small number. //Compute the square root of each number //Compute the cubic root of each number //The reminder of the division of the large number by the small number. //write the day of the year //for assignment 3 leap year use the NOT symbol/exclamation when talking about leap years
gcc
2 354641681461 1909
Show compiler warnings
[
+
] Compiler args
[
-
]
Show input
Compilation time: 0.14 sec, absolute running time: 0.24 sec, cpu time: 0.17 sec, memory peak: 3 Mb, absolute service time: 0,45 sec
edit mode
|
history
|
discussion
multiplication is 709283362922 a and b are 709283362922 and 354641681461 It is not a leapyear