View Code of Problem 68

#include<iostream>
#include <stdio.h>
#include <string.h>
using namespace std;


int main() {
	int a, b, c, d;
	scanf_s("%d %d %d", &a, &b, &c);
	int max = 0;
	d = a > b ? a : b;
	max = d > c ? d : c;
	printf("%d", max);
	return 0;
}	
/*
Main.cc: In function 'int main()':
Main.cc:9:32: error: 'scanf_s' was not declared in this scope
  scanf_s("%d %d %d", &a, &b, &c);
                                ^
*/

Double click to view unformatted code.


Back to problem 68