Computer Science, asked by rachaelmascarenhas7, 10 months ago

Create a scratch program to add two numbers. Pick two numbers randomly (in between 25 to 75) and after adding if the result is greater than 100, say MORE THAN 100 or say LESS THAN 100.

Answers

Answered by AneesKakar
0

PROGRAM:

#include<stdio.h>

#include<conio.h>

void main()

{

int a,b,sum=0;

scanf("%d",&a);

scanf(%d",&b);

if(a>25 && b<75)

{

sum=a+b;

if(sum>100)

{

printf("MORE THAN 100");

}

else

{

printf("LESS THAN 100");

}

}

else

{

break;

}

}

Similar questions