cppOlimp/arifmetik.cpp

16 lines
243 B
C++
Raw Normal View History

2022-02-07 22:33:05 +03:00
//acmp.ru 0008
#include <stdio.h>
int main(){
freopen("INPUT.TXT", "r", stdin);
freopen("OUTPUT.TXT", "w", stdout);
int a, b, c;
scanf("%i %i %i", &a, &b, &c);
if (a * b == c){
printf("%s", "YES");
}else {
printf("%s", "NO");
}
}