Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Assignment 4
//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; int year; scanf("%lld %lld", &a , &b); a*=b; printf("multiplication is %lld\n", a); 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
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
extra causes class UK assisment
SAI_1-5.c
than mine time's ocean as real white shakedown marine is mistake
shrinken shraken shrank leave as no cold call acces program unles clownbtweak blue voda
Maximum of Arrays
Simple interest
Finding type of triangle assignment
18BCE2182 ASSESS_1 Q1-7
loop
summing long int
Please log in to post a comment.