In this c programming example we will learn how to compare two integeres.
#include <stdio.h> int main() { int a, b; printf("Enter number a : "); scanf("%d", &a); printf("Enter number b : "); scanf("%d", &b); if(a > b) printf("a is greater than b"); else printf("a is not greater than b"); return 0; } |
Enter number a : 10
Enter number b : 3
a is greater than b
Calendar Application for beginner Project
Contact Management System Project
Cricket Score Card C Project CSMS
What Day it is - Simple C Project For Beginners
School Billing Management System project with c
Student Record System project with c