Computer Science, asked by Rushildad, 1 month ago

Write a C++program to check and print the given number is one digit number/ two digits number/ three digits number else “Wrong Input” using Nested if statement.

Answers

Answered by sparshdahiya1
1

#include<stdio.h>

int main(){

int x,y;

printf("Enter value for x :");

scanf("%d",&x);

printf("Enter value for y :");

scanf("%d",&y);

if ( x > y ){ printf("X is large number - %d\n",x); }

else{ printf("Y is large number - %d\n",y); } return 0; }

Answered by MichMich0945
0

Hope this helps you :)

Attachments:
Similar questions