Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

// Headers #include #include using namespace std; // Global variables // Function declarations unsigned long long int max(unsigned long long int a, unsigned long long

// Headers

#include

#include

using namespace std;

// Global variables

// Function declarations

unsigned long long int max(unsigned long long int a, unsigned long long int b);

int main()

{

// Your code goes here

unsigned long long int a, b;

// Make sure we place the end message on a new line

printf("enter a integers ");

scanf("%Uu",&a);

printf("enter another integers ");

scanf("%Uu",&b);

max(a,b);

cout << endl;

return 0;

}

unsigned long long int max( unsigned long long int a, unsigned long long int b)

{

if (a>b)

{

printf("%Uu is greater ",a);

}

else if(b>a)

{

printf("%Uu is greater ",b);

}

}

I can't get this working properly in C code the first printf scanf works fine but i can't get the rest working. simple porgrom im just trying to learn the printf and scan f funtions. this needs to be done in C!!! not C++

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

How do we organise for international logistics?

Answered: 1 week ago

Question

What are the logistics implications of internationalisation?

Answered: 1 week ago