Sunday, 23 June 2019

C Program to check sum is less than or greater than hundred


C Program to check sum is less than or greater than hundred
Input :-






Output :- 
1) 




2)




3)





Code :- 

#include <stdio.h>
#include <stdlib.h>

int main()
{
int a, b,c;

printf("Enter a number \n");
scanf("%d",&a );
printf("Enter another number \n");
scanf("%d",&b);
c=a+b;
printf("The Sum is = %d\n\n",c);
{
if (c<100)
printf("The Sum Is Less Than Hundred \n\n\n");
else if (c==100)
printf("The sum is hundred");
else
printf("The sum is greater than hundred \n\n\n\n");
}
return 0;
}















0 Comments:

Post a Comment

Popular Posts

Categories

Android (21) AngularJS (1) Books (3) C (75) C++ (81) Data Strucures (4) Engineering (13) FPL (17) HTML&CSS (38) IS (25) Java (85) PHP (20) Python (83) R (68) Selenium Webdriver (2) Software (13) SQL (27)